Consult API Binary client authentication issues
Hi:
Now I have a client identity authentication, the problem is as follows:
① In accordance with the API document, I have generated app_id for 1197, I use the oAuth authentication client identity, URL for:
https://oauth.binary.com/oauth2/authorize?app_id=1197&l=ZH_CN。I open the URL in the browser, as shown here:
② Click the login button, jump to REDIRECT_URI (registration application URL), as shown in Figure:
③ To this page, is not it can be understood as: Binary has passed the authentication of the client's identity (I think it is), and then I click on the Test button, found that there is information on the Settings Binary AP Account tips are as follows:
④ Click on the JavaScript button for the Test event code as follows:
I need your help, thank you.
Answers
Hello Oauth2 only negerate some valid tokens. You need to autohorize using that token before making requests that require authorization.
Regards
I probably know what you mean, may I ask tokens valid is this?
Get to token later, I want to how to operate can be verified, I was using javasrcipt to use API.
Can you provide the complete javasrcipt code for the verification process demo?
Thank you.
I'm busy right now. But you can check how https://github.com/binary-com/binary-bot does it.
Regards
Hello, I have already downloaded the code to see the https://github.com/binary-com/binary-bot, the code is nodejs, I am not familiar with it, so the code I did not understand.
If I use JavaScript to verify the words, I need how to do it, you can specify what it is best to provide JavaScript validation demo
Thank you.
Hello. Just get the needed url parameters.
Regards
Hello, do not quite understand what you mean. I need to provide certification required parameters? Trouble you can tell me, certification of the time parameter is in what form to value. It is best to give me JavaScript certified demo
Hello. You just can do something like this http://stackoverflow.com/questions/979975/how-to-get-the-value-from-the-url-parameter
then authorize as API guide says.
Regards
@alson888 you need to extract token value from the url and pass that value to authorize call
https://developers.binary.com/api/#authorize
before making any authenticated call. Oauth is mechanism to provide you token, its upto you what you do with those tokens@Raunak It's same what I said.
Regards