/ neurone
Discussions
5
AllQuestionsAnswers
arrowNewest
a9The correct code is: url --include --request GET 'https://neurone-texas-holdem.p.mashape.com/playGame/6' --header "X-Mashape-Authorization: yDORUwsFL5hfZk9GSBiuwg67HjlKs3qH" The previous one contains a encoding error that transformed **'** in **'**
Thu 7:383/7/14
a9Hi Deepak, you can find at this url https://www.mashape.com/docs/gettingstarted/overview a good overview about how to consume an API, and there three basic methods are explained well. Briefly, you can't simply "cut & paste" that string as a browser url because that way the browser does not recognize headers correctly. If you are a Mac or Linux user, a simple method is to use curl via command line, so open a terminal and cut & paste this: curl --include --request GET 'https://neurone-texas-holdem.p.mashape.com/playGame/6' --header "X-Mashape-Authorization: yDORUwsFL5hfZk9GSBiuwg67HjlKs3qH" You can also use JavaScript, Java, PHP, etc, and, moreover, Mashape is really clever and it already prepares consumer code dinamically for you: visit any API and click one of the icons on the top-right, opposite to "Endpoints" label, corresponding to your favorite language. Another way I find very useful to consume API is with a free Chrome Extension called "Postman - REST Client" (https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm) Happy coding.
Thu 7:383/7/14
a9Mmmmm, f**king parser...anyway, you should not use those horrible characters after the **.../6**, just insert an apostrophe.
Thu 7:383/7/14
a5Just found the solution: I was using the test client functionality, so those are probably the mashape server ip addresses. ^^
Thu 7:353/7/14
q5Wrong IP
Thu 7:353/7/14

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication