-
Notifications
You must be signed in to change notification settings - Fork 1.1k
TOKEN_MISSING #184
Comments
@rahuls2704 : Check out https://www.yelp.com/developers/documentation/v3/get_started . First, follow "Get an access token" to use POST Next, include that access token in the "Authorization" header:
How you specify a header depends on what program you're using to make the GET request. Does that help? If so, we'll put more of this explanation up on the main docs. (Side note: https://github.com/Yelp/yelp-fusion is the Github repo for the newer Fusion API your'e using; this https://github.com/Yelp/yelp-api/ is for the older V2 API.) |
Thanks for your response, but not getting any success. //**********// First, follow "Get an access token" to use POST api.yelp.com/oath2/token with your App ID and App Secret to get an access token. |
@rahuls2704 : Are you using Postman, curl, or something else to make your request? I can try to use the words your tool uses. Do you know how to make a POST request? It's not easy to do manually in a web browser, so most people use either Postman or curl. If you're just starting out I'd suggest Postman: We've set up a list of our URLs in Postman's config format, so you don't have to type them in:
The access token will be 128 characters long. Let me know when you've gotten that far, and we'll do the next step --- but don't reveal your actual access token on the internet! |
Hello sir, Thanks for your positive response. I have follow above all
steps, also i got my access token. please see below code
{
"expires_in": 15551999,
"token_type": "Bearer",
"access_token": "my 128 digit code"
}
When i hit below URL
https://api.yelp.com/v3/businesses/search?term=delis&latitude=37.786882&longitude=-122.399972&access_token=my_access_tokenid
I will get following respnose
{"error": {"description": "An access token must be supplied in order
to use this endpoint.", "code": "TOKEN_MISSING"}}
How should i resolve these.
Please reply. Thanks in advance.
…On Tue, Jan 17, 2017 at 10:52 PM, Ken Mitton ***@***.***> wrote:
@rahuls2704 <https://github.com/rahuls2704> : Are you using Postman,
curl, or something else to make your request? I can try to use the words
your tool uses.
Do you know how to make a POST request? It's not easy to do manually in a
web browser, so most people use either Postman or curl. If you're just
starting out I'd suggest Postman:
- https://www.getpostman.com/
We've set up a list of our URLs in Postman's config format, so you don't
have to type them in:
- https://www.yelp.com/developers/documentation/v3/get_started => "Run
in Postman"
Click "Postman for Chrome."
In the left bar, click "Collections".
Click "POST https://api.yelp.com/oauth2/token"
Click "Body".
On the line "client_id", replace "value" with your "App ID" from
https://www.yelp.com/developers/v3/manage_app (22 characters long).
On the line "client_secret", replace "value" with your "App Secret" from
https://www.yelp.com/developers/v3/manage_app . (64 characters long,
you'll need to click "Show" to see it behind the "*****").
On the line "grant type", leave "client_credentials" as-is.
Click the big blue "Send" button.
In the "Response" field, you should see something like:
{
"access_token": "MY_TOKEN",
"token_type": "bearer",
"expires_in": 15552000
}
The access token will be 128 characters long.
Let me know when you've gotten that far, and we'll do the next step ---
but don't reveal your actual access token on the internet!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#184 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AX62X-GcsF4WTXVZEGMGvEHhy9D3ZB-Lks5rTPjVgaJpZM4Lkpd3>
.
|
@rahuls2704 : Great, that's the first step. Now, for the
(You can read more about HTTP headers in https://en.wikipedia.org/wiki/List_of_HTTP_header_fields , but we only need one of them today.) |
Really Great Support from your site. Thanks a lot. You save me lots of time. Thanks a bunch of tone. |
@rahuls2704 : Wonderful! If you have any more questions, head over to and good luck! |
I try to retrieve some information from Yelp API for a UWP app. As they say here, I need to pass some parameter as header for a HTTP request, and then perform a Json request using this link. I know how to parse a Json file once I get it, but I have no idea how to get access to this file.
If for example I put
https://api.yelp.com/v3/businesses/search?term=delis&latitude=37.786882&longitude=-122.399972&access_token=my%20access_tokenid
this link on my browser
and I am getting error that token_missing.
{"error": {"description": "An access token must be supplied in order to use this endpoint.", "code": "TOKEN_MISSING"}}
How should I enter this TOKEN_MISSING?
Also i got some answer Yelp/yelp-fusion#45 (comment).
but not get any help.
The text was updated successfully, but these errors were encountered: