API

38 watchers
Aug 2014
9:12am, 22 Aug 2014
66 posts
  •  
  • 0
jonbev
Me me me
Aug 2014
10:02am, 22 Aug 2014
14,769 posts
  •  
  • 0
fetcheveryone
Here's a page for each of you to request a set of developer keys:

http://www.fetcheveryone.com/api-request-keys.php
Aug 2014
10:09am, 22 Aug 2014
85 posts
  •  
  • 0
nuttyficket
Will we be able to access user created routes via API?
Aug 2014
10:12am, 22 Aug 2014
15,173 posts
  •  
  • 0
flanker
got my pretty. Now I wait to see what i can do with it :-)
Aug 2014
10:13am, 22 Aug 2014
14,770 posts
  •  
  • 0
fetcheveryone
In theory, it's all possible - it's just about giving access to the right parts of the database. I'm starting with importing data though, as a few people have talked about uploading their training.
Aug 2014
10:32am, 22 Aug 2014
14,771 posts
  •  
  • 0
fetcheveryone
I've created a simple example for you to test out. It just grabs a list of threads.

Here's the client-side code:

http://www.fetcheveryone.com/demo/api_example.0.1.zip

There are two files - a small object with methods that will request a token for you, and execute a GET request. You'll need to stick your key and secret into that. And example.php just illustrates some params for you.
Aug 2014
10:35am, 22 Aug 2014
14,772 posts
  •  
  • 0
fetcheveryone
PS a token lasts for 60s.
PPS if you spam the server with lots of requests, Apache will kick you out for a bit. So don't :-)

All feedback gratefully received. Once the mechanism is good, then adding more request types is fairly straightforward by comparison. I'm off for a run in a min, but when I'm back, I will be working on the code that will allow you to supply data, rather than just request it.
Aug 2014
11:19am, 22 Aug 2014
14,773 posts
  •  
  • 0
fetcheveryone
Anyone?
Aug 2014
12:31pm, 22 Aug 2014
4,376 posts
  •  
  • 0
Badger
I've got as far as downloading them :) Probably won't have time to play until Monday though, and will start by translating them into something else (python/requests, specifically).
Aug 2014
12:39pm, 22 Aug 2014
86 posts
  •  
  • 0
nuttyficket
No problems, working fine for me (in Python).

Er. No other feedback. Top stuff :)

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,231 Fetchies!
Already a Fetchie? Sign in here