0

I'm using xamarin forms to develop my android app. I'm done with sending data as POST requests now.

I'm currently using GSM Modem (SMS) as a placeholder for other SMS APIs for OTPs in the future. This is the URL that the app gives me: Received URL

As you can see, there are parameters available. Using my browser/PHP, I can easily refresh the page with new values in the parameters. However, in C# I'm quite unfamiliar with filling up these parameters.

I just want my app to send a signal or something to the URL with a dynamic phone and message parameters.

1

1 Answer 1

4

What about string interpolation

var url = $"http://192.168.1.102:8090/SendSMS?username={yourusername}&password={yourpassword}&phone={yourphone}&message={yourtext}"

simplest way to send HTTP GET:

var client = new HttpClient();
await client.GetAsync(url)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.