Answer the question
In order to leave comments, you need to log in
How to send a request to the API with data from the input fields and get a response?
I'm trying to make an appeal to the API service in php.
Here is the information from this service
. Main parameters and answers
https://api.joinsta.com/v1/ - address of the API service.
Parameters:
link - link to the photo on Instagram, where you need to get likes;
maxlikes - the required number of likes on the photo; after reaching this amount, the promotion will stop (optional parameter);
key is the key (optional).
Sample request
https://api.joinsta.com/v1/?link=https://www.insta...
Service responses:
done — 30 likes boost launched;
finish - cheating is completed (only if the number of likes on the photo is ≥ the maxlikes parameter);
empty - no link;
error link - invalid link or closed account;
How to force a script to address this server and to receive the answer. With that in mind. That the link and maxlikes parameters will be obtained from the input fields named "Link" and "Max"
Answer the question
In order to leave comments, you need to log in
The requests themselves are easiest to implement through curl. It is up to you to decide how exactly you will forward the parameters from your form to the server. There is nothing difficult about renaming parameters while processing on the server. On the other hand, if you or a member of your team also makes the page with the form, why not agree on a more convenient naming of the form fields?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question