1

API changes? (Read 90 times)

DaGlutenFreeG


    Recently my scripts to automatically upload my runs have failed. Is there anything that has changed in the API recently (apart from https)? Trying directly from the command line with:

     

    curl -X POST -d 6CI80031.fit  https://api.runningahead.com/rest/logs/me/workouts/fit?access_token=MYTOKEN

     

    returns a code 10 unexpected error.

     

    Thanks.

    stadjak


    Interval Junkie --Nobby

      Possibly related to the security changes Eric Smile made recently?

      2021 Goals: 50mpw 'cause there's nothing else to do

      eric :)


        Hi,

        Your curl syntax is incorrect.  You're sending the name of the file as the plain text post body.  You need to use the file syntax and specify the data binary:

         

        curl -X POST --data-binary "@<filename>" https://api.runningahead.com/rest/logs/me/workouts/fit?access_token=<token>
        DaGlutenFreeG


          Ahh! That's the ticket! Thanks, everything is working again.