Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting long-lived/background tokens for backend use?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Will Meyer  
View profile  
 More options Dec 6 2011, 1:19 pm
From: Will Meyer <willme...@gmail.com>
Date: Tue, 6 Dec 2011 10:19:12 -0800 (PST)
Local: Tues, Dec 6 2011 1:19 pm
Subject: Getting long-lived/background tokens for backend use?
Hi there.  Big runkeeper user, and also a software dev.  I would like
to provide my own info on my own website.  So I need to auth my app
but not involve my users.  Can I do this somehow?

Thanks!

will


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Barratt  
View profile  
 More options Dec 6 2011, 4:53 pm
From: Christopher Barratt <chris.barr...@runkeeper.com>
Date: Tue, 6 Dec 2011 16:53:13 -0500
Local: Tues, Dec 6 2011 4:53 pm
Subject: Re: Getting long-lived/background tokens for backend use?

Hi Will,

If I understand you correctly, you would be making calls to the API only on
your own behalf.  In this case, perform the OAuth flow once (using whatever
environment you choose to set up) in which you enter your own email address
and password, and save the resulting access token.  Since this token does
not expire, you can transfer it to your web backend to make calls to the
Health Graph.

-- Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Will Meyer  
View profile  
 More options Dec 6 2011, 5:17 pm
From: Will Meyer <w...@sptm.org>
Date: Tue, 6 Dec 2011 17:17:56 -0500
Local: Tues, Dec 6 2011 5:17 pm
Subject: Re: Getting long-lived/background tokens for backend use?

Ah, great. I wasn't aware the tokens don't expire. Thanks...
On Dec 6, 2011 4:53 PM, "Christopher Barratt" <chris.barr...@runkeeper.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Len Hardy  
View profile  
 More options May 1 2012, 9:26 pm
From: Len Hardy <ljha...@gmail.com>
Date: Tue, 1 May 2012 18:26:50 -0700 (PDT)
Local: Tues, May 1 2012 9:26 pm
Subject: Re: Getting long-lived/background tokens for backend use?

I have been able to make the whole process work, but need a little guidance
on how to pass the token to Health Graph on subsequent calls, ie) after I
have received and saved the token.
*
*
Thanks, Len
*
*
*and save the resulting access token.  Since this token does
not expire, you can transfer it to your web backend to make calls to the
Health Graph. *


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Barratt  
View profile  
 More options May 1 2012, 9:30 pm
From: Christopher Barratt <christopher.barr...@runkeeper.com>
Date: Tue, 1 May 2012 21:30:08 -0400
Local: Tues, May 1 2012 9:30 pm
Subject: Re: Getting long-lived/background tokens for backend use?

Hi Len,

When you make a call to the API, add the following HTTP header:

Authorization: Bearer your-token-here

-- Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »