Webhooks does not send Athlete (sends only activities)

225 views
Skip to first unread message

Marco Facciano

unread,
Feb 24, 2021, 10:56:09 AM2/24/21
to Strava API
I have developed the webhooks for Strava API .

I receive the updates for Activities (Create, Updata and Delete)

I DO NOT receive for Athletes (nothing)

I have tried a cuople of combination of scopes. 
Does any body know the correct scope to get the athlete's data?

Thanks

kingo...@gmail.com

unread,
Feb 24, 2021, 11:10:52 AM2/24/21
to Strava API
From https://developers.strava.com/docs/webhooks/

"Specifically, webhook events are pushed when an athlete revokes access to an application, or when an activity is created, deleted, or one of the following activity fields are updated:
  • Title
  • Type
  • Privacy, requires an access token with activity:read_all scope"

So the only athlete webhook event you might receive is when an athlete de-authorises your application and there is no relevant athlete data associated with that. What "athlete" event (containing athlete's data) were you hoping for?

Nick

Nick Steel

unread,
Feb 24, 2021, 11:47:33 AM2/24/21
to Marco Facciano, Strava API
Hi Marco

That makes more sense. "Does any body know the correct scope to get the athlete's data?" was confusing in that regards since it has nothing to do with deauthorization. I don't believe you ever need any additional scopes to receive de-auth events.

Are you testing the deauthorizing by revoking access through https://www.strava.com/settings/apps or with a POST to https://www.strava.com/oauth/deauthorize ?

p.s. you didn't send this reply to the list.

Nick

On Wed, 24 Feb 2021, at 4:19 PM, Marco Facciano wrote:
Thanks Nick,
The problem is that i do not receive anything.
Specifically i am looking for the de-authorization event but i am not receiving this 

This is my authorization link:




--
You received this message because you are subscribed to a topic in the Google Groups "Strava API" group.
To unsubscribe from this group and all its topics, send an email to strava-api+...@googlegroups.com.

Nick Steel

unread,
Feb 24, 2021, 12:22:49 PM2/24/21
to strav...@googlegroups.com
To be honest, your last email is really not clear and you didn't explicitly answer my question.

But **please** send your replies via the mailing list.
Thanks

Nick

On Wed, 24 Feb 2021, at 5:03 PM, Marco Facciano wrote:
Hi nick,

What i am trying to achieve is that if anybody deauthotizes my app from strava frontend, i get a mesaage (i assume a webhook) so that i can delete all his data

From the strava developer i shpuld grt an athlete - delete webhook. But i am testing this with no results.
Webhooks are working fine for activities but not from webhooks 

The de-auth would be an activity generated from my app but i would like to receive  from strava

Hope is clear. 
Thanks

Marco Facciano

unread,
Feb 24, 2021, 1:15:08 PM2/24/21
to kingo...@gmail.com, Strava API
HI Nick,
this is what i would like to do:
an athlete applies to my app , get the oauth : DONE
activate the webhooks - DONE
receive new activities, update activities, delete activities via webhook - DONE

from webhook documentation i should aslo capture if any changes done by athlete via webhook: (HERE IS THE PROBLEM)
example: change name, add new club
and most of all DELETE, this happen when on Strava you "revoke access" to an app
AS per strava documentation, upon Delete athlete, i should delete all his data. THIS IS THE MESSAGE I AM NOT RECEIVING

Thanks


Il giorno mer 24 feb 2021 alle ore 17:10 kingo...@gmail.com <kingo...@gmail.com> ha scritto:
--

Bryant Likes

unread,
Feb 24, 2021, 1:22:09 PM2/24/21
to Marco Facciano, kingo...@gmail.com, Strava API
There are no webhook events for an athlete changing their name or adding a club. It states this very clearly in the webhook documentation. 

Specifically, webhook events are pushed when an athlete revokes access to an application, or when an activity is created, deleted, or one of the following activity fields are updated

When you say "most of all DELETE", what do you mean? When an athlete deletes his account? 

The only time you will get the webhook for the athlete revoking access to your app is when the athlete goes to their settings page and clicks the "Revoke Access" button next to your app on the apps page. That is the only time this webhook is sent. 

You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/strava-api/CALXss_gLCq%2Bfo9fVZD9w6d_UNWmexjNSCjU5obJoLqgzFr2RUQ%40mail.gmail.com.

Bryant Likes

unread,
Feb 24, 2021, 1:44:56 PM2/24/21
to Marco Facciano, Strava API
As Nick said, please reply-all instead of just replying when using the developer group. 

I think we all understand that you're looking for the deauthorize event. 

Can you please let us know the steps you're taking to test this? 

Nick has asked for this already but it is still not clear what you are doing to revoke access. 

On Wed, Feb 24, 2021 at 10:27 AM Marco Facciano <facc...@gmail.com> wrote:
Hi Briant, 
"The only time you will get the webhook for the athlete revoking access to your app is when the athlete goes to their settings page and clicks the "Revoke Access" button next to your app on the apps page. That is the only time this webhook is sent. "

This is exactly the message i am looking for and i am not receiving it.
webhooks work for activities but not for this message (which i think is the most important).

Is it a problem of "scope" in the auth request? I tried all sorts of combination with no luck

Marco Facciano

unread,
Feb 24, 2021, 2:20:15 PM2/24/21
to Bryant Likes, Strava API
Thanks Bryant,

I am going in strava -> my account -> settings-> my apps ->Revoke access

Marco

Marco Facciano

unread,
Feb 25, 2021, 5:20:53 AM2/25/21
to Bryant Likes, Strava API
Hi,
I kind of solved the problem (actually it sits somewhere else)

If i do Revoke Access from Chrome everything works, while if i do it from Mozilla it doesn't (kind of strange behaviour)

The hook works fine (need to understand why it doesn't from Mozilla, but i guess this is a Strava issue)

One final thing:
i can't find the revoke-access on the iphone Strava app. any idea where it is?

Thanks to everybody



Reply all
Reply to author
Forward
0 new messages