Topic

Staff Topic

Glitch API

We're just about ready to start testing access to the glitch API. If you'd like to build something (or already have!), tell us about it!

You can create your API key here: api.glitch.com/keys/

More details: api.glitch.com/#auth
Spec: tools.ietf.org/html/draft-ietf-oauth-v2-13

Posted 22 months ago by Bees! Subscriber! | Permalink

Replies

1 2 3 Next
  • @Taral
    With your talk of lists and objects, I'm guessing you're using Python.  The response format is JSON, so I'd look at the Python docs for import json as to how to wrangle the data as you'd best want it.
    Posted 19 months ago by La Esponja Grande Subscriber! | Permalink
  • @La Esponja Grande - yes, you are correct.  My bad.
    Posted 19 months ago by Lord Tweedmouth Subscriber! | Permalink
  • Key request!

    App Name: Crwth.org API Test
    Redirect URI: glitch.crwth.org/oauth

    Thank you!
    Posted 19 months ago by Crwth Subscriber! | Permalink
  • Before I request a key and set up a redirect URL, can you illuminate your policy on using Glitchy things for domain names? E.g., if I'm setting up an auction house for Glitchmas yetis (not that I would), could I call it glitchmasyetis.com?

    Also, what is your policy on revenue-generating apps and sites?

    Thanks!
    Posted 19 months ago by Hands Subscriber! | Permalink
  • Another key request!  :)

    App Name: Glitchy
    Redirect URI: Glitchy://oauth

    THANKS!!
    Posted 18 months ago by Jifka Subscriber! | Permalink
  • I'm sorry, is any of this in English?  What's going on in this post?  I want a key! lol
    Posted 18 months ago by Laurali Subscriber! | Permalink
  • Laurali: This is for people that want to write programs that interface with Glitch.
    Posted 18 months ago by Taral Subscriber! | Permalink
  • Thanks Taral!
    Posted 18 months ago by Laurali Subscriber! | Permalink
  • I'd like to request a key.
    App name: Glitchbook
    Redirect URI: glitchbook.com/auth
    Posted 18 months ago by Fussycat Subscriber! | Permalink
  • I'd love to request a key as well.
    App Name: Glitch Tools
    Redirect URI: dragonsandspaceships.com/glitch/auth
    Posted 18 months ago by Nerji Subscriber! | Permalink

  • Please can i have a key as well?

    Name: Backstabtest
    Redirect URI: nookdo.com/glitch/auth
    Posted 18 months ago by James Backstab Subscriber! | Permalink
  • Just wondering...are keys still being provided?  
    Anyone...?  
    Anyone...?  
    Bueller...?  
    Posted 18 months ago by Jifka Subscriber! | Permalink
  • Crwth, Jifka, Fussycat, Nerji, James Backstab: your keys have been created

    Lord Tweedmouth: What kind of location APIs would you like to see?

    Hands: Good question! I'll get back to you shortly
    Posted 18 months ago by Bees! Subscriber! | Permalink
  • If a location API returned, essentially, all the things on location pages, I'd be happy. I'm guessing it would have location_tsid as a required argument, but it'd be nice to have an optional player_tsid as an argument so the method can return visited information.

    Listing resources might be a problem, though, since it'd have to list things in such a way that one street can be compared to another, even if the grammar (butterfly vs. butterflies) is different. On a related note, it would be nice if there was a way to list all the listable resources.
    Posted 18 months ago by Dave Subscriber! | Permalink
  • Can the API be used in desktop applications as well as web apps?
    Posted 18 months ago by Dasher Subscriber! | Permalink
  • Oh, I filed my feature request in the Ideas forum: [API] Item info?
    Posted 18 months ago by Taral Subscriber! | Permalink
  • Bees!
    Thanks++
    Posted 18 months ago by Jifka Subscriber! | Permalink
  • Sounds awesome - been looking for an excuse to tinker with some JSONP stuff for a while

    Name: Life's A Glitch
    URL: webhustler.co.uk/glitch/auth

    Thanks in advance
    Posted 18 months ago by Quiffy Subscriber! | Permalink
  • Key Request
    Learning Powder
    learningpowder.com/auth/glitch/callback
    Posted 18 months ago by Hands Subscriber! | Permalink
  • glitch is down... itching to play with glitch... might as well use its api to make a cool mobile app

    mysteryglitch
    nusoy.com/glitch/callback
    Posted 18 months ago by yossi Subscriber! | Permalink
  • Key Request
    Name: The Land of Glitch
    Redirect URI: oz-glitch.appspot.com/auth
    Posted 18 months ago by Valince Subscriber! | Permalink
  • Hi there. Can i have my redirect url changed from www.mirror7.com/glitch/oauth/ to www.glitchpedia.com/users/o...?
    Thanks
    Posted 18 months ago by Ghunti Subscriber! | Permalink
  • Can i get an api key?

    Name: Glitch Tools
    Redirect URI: http://glitch.cloudfoundry.com/

    Im guessing the redirect uri is using prefix matching for validation and by using the root ill be able to use any url under that host?
    Posted 18 months ago by The Artisan Subscriber! | Permalink
  • @The Artisan - the redirect URI is the URI to which the user will get sent to once they've authenticated. You should look at the examples linked to on the API page.
    Posted 18 months ago by dopiaza Subscriber! | Permalink
  • @dopiaza the oauth2 spec defines the redirect_uri parameter for the authorization endpoint, as that it should be loosely be checked against the uri on file, implementations normally handle this by checking the start of the uri sent in the request matches the one on file, which in my experience normally means its better to define them at the root of your application.
    Posted 18 months ago by The Artisan Subscriber! | Permalink
  • Oh, OK. I guess I should finally get around to reading that spec properly, shouldn't I :-)
    Posted 18 months ago by dopiaza Subscriber! | Permalink
  • @dopiaza its a pretty dry read, I only read it because I had to build a oauth 2 server / client for work :)
    Posted 18 months ago by The Artisan Subscriber! | Permalink
  • @Bees!:

    App Name: Glitch Backpack
    Redirect URI: http://full-speed.org/glitch/auth
    Posted 18 months ago by scottj Subscriber! | Permalink
  • I would love to try out the API
    App Name: Douglas-fir
    Redirect URI: circlebear.com/glitch/auth
    Posted 18 months ago by Riggleran Subscriber! | Permalink
  • App name: Chicken Squeezer
    Redirect URI: glitch.xoct.me/oauth2/done
    Thanks!
    Posted 18 months ago by Vova Subscriber! | Permalink
  • Sorry we are so far behind on this — we will catch up as soon as we can!
    Posted 18 months ago by stoot barfield Subscriber! | Permalink
  • I haven't been about to find it, but does anyone know of a way to get the xp minimum for the player's current level?  Right now the API only provides totals - i.e. xp = total xp acquired, and xp_max is xp needed for next level.  But with just those numbers you can't calculate the % complete for the current level.
    Posted 18 months ago by Jifka Subscriber! | Permalink
  • If you call players.stats, you'll get the current level, the XP required to level up and the progress towards that:

    "level": 33, "xp": 6192, "xp_max": 33887,

    If you call players.fullinfo, you'll get the grand totals:

    "level": 33, "xp": 379506, "xp_max": 407201,
    Posted 18 months ago by dopiaza Subscriber! | Permalink
  • awesome, thanks!
    Posted 18 months ago by Jifka Subscriber! | Permalink
  • you can now create and manage your own keys: http://api.glitch.com/keys/

    Quiffy, Hands, yossi, Valince, The Artisan, scottj, Riggleran, Vova: you can create your own keys now

    Ghunti: you can make those modifications yourself from the same page

    The Artisan: auth url is currently a full/exact match. the (current) spec does not mandate it either way. you can always use the optional 'state' var for passing back anything more specific.
    Posted 18 months ago by Bees! Subscriber! | Permalink
  • "you can now create and manage your own keys"

    Nice! - thanks Cal!
    Posted 18 months ago by dopiaza Subscriber! | Permalink
  • Bees!, you rock! Ty
    Posted 18 months ago by Quiffy Subscriber! | Permalink
  • Thanks Bees!
    Posted 18 months ago by Valince Subscriber! | Permalink
  • i'd love to see API access to all the various player stat counters ... # of times petted X, # of times dead, # of streets visited, # of players traded with, etc.

    The idea would be to create a player stats view that listed various leaderboard-ish info as well as progress towards different achievements.
    Posted 18 months ago by Another Chris Subscriber! | Permalink
  • Hi, should I have a key of API, even my site is for my private sandbox place?  Plus, it's a localhost thing, I don't have any public host server.  So, do I still need a key?

    If so, what's redirect URI address for a localhost type?
    Posted 17 months ago by Milolin Subscriber! | Permalink
  • You can use a local address for the redirect. If/when you decide to make your site public you can change it to the public address.
    Posted 17 months ago by Hands Subscriber! | Permalink
  • And is it time to have an API forum? This thread is getting long. There's already a group, but there should be something publicly visible, too. Something that you don't have to join.
    Posted 17 months ago by Hands Subscriber! | Permalink
  • Do the devs watch the API group?
    Posted 17 months ago by Taral Subscriber! | Permalink
  • Name: Glitch Remote Control
    URL: http://glitch.beenza.ru/glitch/oauth
    Posted 17 months ago by Nikita Subscriber! | Permalink
  • @Nikita - go here and you can set it up yourself.
    Posted 17 months ago by dopiaza Subscriber! | Permalink
  • Hey, stoot - 71 days ago, you said:

    "As for permanence: we'll see! Everything is still up in the air for now. Probably, in the long run, new (post-Beta) keys will be issued."

    Is that still a possibility? Will the keys we have now become invalid and need to be replaced with new keys at the end of beta?
    Posted 17 months ago by dopiaza Subscriber! | Permalink
  • dopiaza: nope, the exising keys will work past beta (unless something very unexpected happens)
    Posted 17 months ago by Bees! Subscriber! | Permalink
  • Thanks - that makes life much simpler!
    Posted 17 months ago by dopiaza Subscriber! | Permalink
  • The API now has its own forum.
    Posted 17 months ago by Bees! Subscriber! | Permalink
1 2 3 Next