Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Event oriented APIs

Event oriented APIs

Talk at the first meeting of usemyapi.com group

Fernando Blat

May 29, 2012
Tweet

More Decks by Fernando Blat

Other Decks in Programming

Transcript

  1. 1 - Search and store the results 2 - Wait

    N (seconds|minutes|hours|days) 3 - Search items created after our last saved item and store the results ∞ sábado 12 de mayo de 2012
  2. 3FBM 5JNF /PUJGJDBUJPOT Whenever a resource changes, clients subscribed to

    that resource get notified sábado 12 de mayo de 2012
  3. *OTUBHSBN XBZ Create a suscription to: ๏ user ๏ tag

    ๏ geography ๏ location sábado 12 de mayo de 2012
  4. Callback URL receives a POST request with the ids that

    have changed The client has to use the “regular” API to get those items *OTUBHSBN XBZ sábado 12 de mayo de 2012
  5. Client perfoms a request to the Streaming API with the

    parameters and indicating to keep open that connection Twitter sends JSON objects through that channel with delimiters 5XJUUFS XBZ sábado 12 de mayo de 2012
  6. Messages to remove tweets Can arrive before the tweet itself

    5XJUUFS XBZ sábado 12 de mayo de 2012
  7. Do you implement this kind of APIs? Is it worthy?

    %FCBUF sábado 12 de mayo de 2012