Question: 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?

what am i doing wrong--php? FitBark API uses the OAuth 2.0 protocol

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!