I
I
i_cant_play_any_solo2019-10-01 13:19:26
Java
i_cant_play_any_solo, 2019-10-01 13:19:26

How to make a simple http request in android?

Hello. I have very poor knowledge of Java programming, including Android. But it was urgently necessary to implement a task, the essence of which is sending SMS via the SMS aero api service from an Android application.
Shoveled a lot of links but did not manage to get everything to work.
To send SMS, you must complete a request of the form

https://email:[email protected]/v2/sms/send?numbers[]=79990000000&numbers[]=79990000001&text=your+text&sign=SMS Aero&channel=DIRECT

This case also works from the address bar of the browser, but Android did not want to. I tried to implement it via okhttp, put the whole thing into a separate thread, but in the end now I'm again sitting in front of an empty ide window. Actually, I would like to see a working example suitable for my task, or in a nutshell where to dig, otherwise my head is already spinning. Thanks to all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cheypnow, 2019-10-01
@Cheypnow

https://stackoverflow.com/a/31148311/9630486

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question