API

38 watchers
Aug 2014
10:53am, 23 Aug 2014
14,783 posts
  •  
  • 0
fetcheveryone
And again :-)
Aug 2014
1:06pm, 23 Aug 2014
14,784 posts
  •  
  • 0
fetcheveryone
If you'd like to try out the TCX upload, I've put another example script here:

http://www.fetcheveryone.com/demo/api_client.0.2.zip

Important notes:

1) Don't forget to stick your user/secret in objAPI.php
2) In example.php you'll need to set the file path to your TCX file, and use your OWN user ID
3) PLEASE DON'T TRY IMPORTING IN BULK JUST YET.

Let me know how you get on. Thanks :-)
Aug 2014
6:55pm, 23 Aug 2014
89 posts
  •  
  • 0
nuttyficket
Hallelujah! http://www.fetcheveryone.com/training-log-view.php?id=10401170

Got this working ok (after a bit of faffing round on my side); nice to get the run id returned in the response code :) Also got an error trying to upload run to fetch's account (ahem, was just testing!), so that works too.

Is it right I only have one split? I usually use GPX files and get them every kilometre. Also - will I still get Conquersize zones if I upload via the API? Questions, questions :)
BFC
Aug 2014
7:54pm, 23 Aug 2014
2 posts
  •  
  • 0
BFC
Me me me. I'm interested in testing and using the API. How do I get a user/secret?
Aug 2014
7:56pm, 23 Aug 2014
90 posts
  •  
  • 0
nuttyficket
BFC, try here http://www.fetcheveryone.com/api-request-keys.php :)
BFC
Aug 2014
8:00pm, 23 Aug 2014
3 posts
  •  
  • 0
BFC
Thanks, but I get an incomplete page and an error: "Uncaught ReferenceError: defaultOnload is not defined" in the dev console on Chrome and Firefox. Looks like there may be a JS race condition on the page preventing the rest of it from loading.
Aug 2014
8:07pm, 23 Aug 2014
91 posts
  •  
  • 0
nuttyficket
How odd. Is fine for me (on Chrome).

One for fetch to sort out, I think.
Aug 2014
8:35pm, 23 Aug 2014
14,785 posts
  •  
  • 0
fetcheveryone
Try refreshing the page. The JS error won't be related to the keys (more likely it's a dodgy ad).
BFC
Aug 2014
8:51pm, 23 Aug 2014
4 posts
  •  
  • 0
BFC
Nope, still same thing.

I don't see anything beyond the "Request Key And Secret" heading, not even the usual page footer.

Blocking ads doesn't help either.

Tested on Chrome & Firefox on a Mac and an iPad.
BFC
Aug 2014
8:53pm, 23 Aug 2014
5 posts
  •  
  • 0
BFC
Come to think of it, I wonder if this is a premature closing div tag. Will check in the morning if the problem persists.

About This Thread

Maintained by fetcheveryone
We're very much in the "gently trying things out" stage, but please join in if you're interested in working with a Fetch API:

Get your developer keys here:
http://www.fetcheveryone.com/api-request-keys.php

And a basic PHP client example here:
http://www.fetcheveryone.com/demo/api_client.0.2.zip

With thanks to Badger, here's a Python version:
http://www.fetcheveryone.com/demo/FetchAPIPython_0.2.zip

Available methods:
http://www.fetcheveryone.com/api-doc.php

Join the developer group here:
http://www.fetcheveryone.com/groups-view.php?id=1167

If you'd care to port the client into another language, please let me know, and I can upload it to share with others.

Related Threads

  • api
  • coding
  • import









Back To Top
X

Free training & racing tools for runners, cyclists, swimmers & walkers.

Fetcheveryone lets you analyse your training, find races, plot routes, chat in our forum, get advice, play games - and more! Nothing is behind a paywall, and it'll stay that way thanks to our awesome community!
Get Started
Click here to join 112,238 Fetchies!
Already a Fetchie? Sign in here