legacy-api-documentation icon indicating copy to clipboard operation
legacy-api-documentation copied to clipboard

GET /v1/photos/search fails for OAuth Authentication

Open lkorth opened this issue 10 years ago • 4 comments

Making a request to GET /v1/photos/search is successful when a consumer key is included as a query param, however when using an access token and signing the request results in a 401 with the following response

{ 
  "error": "Consumer key missing.",
  "status":401
}

According to the documentation, OAuth is a valid form of authentication for this endpoint. Can you confirm is the documentation is wrong or the API is wrong?

lkorth avatar Oct 22 '15 04:10 lkorth

The access token needs to be used together with consumer key to access OAuth API

zimuliu avatar Dec 01 '15 02:12 zimuliu

That's not true, all other endpoints accept just the access token and will return an error when you try to use the access token and consumer key.

lkorth avatar Dec 02 '15 14:12 lkorth

Did you manage to find a solution to this problem? It works perfectly when I tried with Paw or Apigee on users/search with OAuth

adrianhartanto0 avatar Jun 26 '16 15:06 adrianhartanto0

No, I just switched to using a consumer key for all search requests and have not tried it since.

lkorth avatar Jul 07 '16 14:07 lkorth