PHP Classes

Garmin 3 Legged OAuth

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  Learn with a PHP OAut...  >  All threads  >  Garmin 3 Legged OAuth  >  (Un) Subscribe thread alerts  
Subject:Garmin 3 Legged OAuth
Summary:Have you a complete proceddure to abtain User Access Token
Messages:2
Author:Franco Brussolo
Date:2020-05-27 16:42:59
 

  1. Garmin 3 Legged OAuth   Reply   Report abuse  
Picture of Franco Brussolo Franco Brussolo - 2020-05-27 16:42:59
Hi,

first of all, thanks for you work.

I don't undestand how to get Access Token with your code.

Garmin Server, after user auth, redirect to a callback url.

How can I receive access_token?

Thank you,
Franco

  2. Re: Garmin 3 Legged OAuth   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-05-27 21:54:11 - In reply to message 1 from Franco Brussolo
Hello Franco,

The class simplifies calling API using the CallAPI class function.

So usually you just need to use that function, as you may see in the login_with_garmin.php example script.

Anyway, if you need the access token, you just need to access the class access_token as it is explained in the class documentation file oauth_client_class.html .