Answer the question
In order to leave comments, you need to log in
How to log in to the API server?
Guys, tell me here, on what issue. They gave api to apiblueprint - as I understand it, you need to generate requests on something like curl: you access a specific address and pass it via post json with a set of request parameters: the name of the api function, as well as a list of its arguments. It seems to sound logical.
Also, they gave you a login and password for this system, but did not tell you how to log in - here's your login and password, let's connect and write scripts. Who used similar, tell, how there is an authorization on similar servers.
Answer the question
In order to leave comments, you need to log in
You understand everything correctly. You need to:
1. Log in by sending your login and password to the address for authorization. For example api.site.ru/login
2. After authorization, you get a token.
3. Form all requests to api with a token.
On php it is more convenient to work with http-build-query
You can send a request file-get-contents
You can use curl
Example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question