File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ func main() {
2525 if err != nil {
2626 log .Fatal ("Error loading .env file" )
2727 }
28- fmt .Printf ("\n \n %s\n \n " , decode ("LTa1M0I0nDKNEOIQHFc0uEaRX3AnlZY=" ))
2928 sendSingle ()
3029}
3130
@@ -60,13 +59,13 @@ func sendSingle() {
6059 var responsePayload string
6160 err := requests .
6261 URL ("/v1/messages/send" ).
63- Host ("leading-puma-internal.ngrok-free.app " ).
62+ Host ("api.httpsms.com " ).
6463 Header ("x-api-key" , os .Getenv ("HTTPSMS_KEY" )).
6564 BodyJSON (& map [string ]any {
66- "content" : encrypt ("This is a test text message" ),
65+ "content" : fmt . Sprintf ("This is a test text message [%d]" , i ),
6766 "from" : os .Getenv ("HTTPSMS_FROM" ),
68- "to" : os .Getenv ("HTTPSMS_FROM " ),
69- "encrypted" : true ,
67+ "to" : os .Getenv ("HTTPSMS_TO " ),
68+ "encrypted" : false ,
7069 "request_id" : fmt .Sprintf ("load-%s-%d" , uuid .NewString (), i ),
7170 }).
7271 ToString (& responsePayload ).
You can’t perform that action at this time.
0 commit comments