Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what am i doing wrong--php? FitBark API uses the OAuth 2.0 protocol to authenticate incoming requests. A client.id and client_secret are assigned to each application

what am i doing wrong--php?

image text in transcribed

getRequestToken("https://app.fitbark.com/oauth/authorize"); if(!empty($request_token_info)) { echo($request_token_info); } else { echo( "Failed fetching request token, response was: " . $oauth->getLastResponse()); } } catch(OAuthException $E) { echo "Response: ". $E->lastResponse . " "; } ?>

FitBark API uses the OAuth 2.0 protocol to authenticate incoming requests. A client.id and client_secret are assigned to each application created by a Developer. The Developer can then request authorization from the user to access user's data and obtain an Access Token, which will be used for further requests. This token will have an extended expiration time, and the Developer can store the token and use it for multiple calls. To make calls on behalf of the user, the Developer needs to get explicit permission from the user via a 3-legged authentication mechanism Step 1 User is redirected to the authentication page (GET https://app.fitbark.com/oauth/authorize) passing: response-type-code : must have the value client-credentials" to obtain the authorization code client_id: unique identifier obtained from the developer portal . .redirect uri: URI where to redirect the user after he/she grants permissions. This URI must match one of the URI prefixes defined when setting up API access Step 2 If the user is not logged in, then he/she will be asked to enter their user and password. After the user logs in, hell see the list of permissions being asked, and needs to accept the request

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the APPROACHES TO HRM?

Answered: 1 week ago