The Artima Developer Community
Sponsored Link

Python Buzz Forum
Pownce API - it exists, it's just not yet 'open'

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
Pownce API - it exists, it's just not yet 'open' Posted: Jul 8, 2007 6:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: Pownce API - it exists, it's just not yet 'open'
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

Pownce does have an API, it's just not public or official. You can see how it works by snooping on comms from the desktop app to pownce.com. In the grand tradition of reverse engineering on this blog (see: xmlStorageSystem, Salon Blogs hacking), here are the endpoints I can access. Mr Twitterific appears to have figured it out, too. I don't have the time to delve in further, but hopefully this can be a good starting point for someone else to build a proper client, or perhaps an encouragement for Pownce to make the whole thing public.

GET /api/available/

→ returns a 200 OK response with no content.

GET /api/login/
Authorization: Basic base64(login ':' password)

→ returns a Set-Cookie header with a session ID, and a chunk of XML with a <login/> element. The important part here is the 'token' attribute, which will be used as the WSSE password from now on. (You wouldn't believe how much of a pain this was to figure out - a complete needle in the haystack.)

POST /api/notes/for/username/
Content-Type: application/x-www-urlencoded auth=url-encoded WSSE UsernameToken, with your username in the Username field and the content of the login/@token attribute from the /api/login/ call used as a password
→ returns an Atom feed of recent posts visible by username. POST /api/notes/
Content-Type: application/x-www-urlencoded
WSSE UsernameToken, as above
note_to=all|public|...
note_type=note-message|...
note_body=message content

→ posts a new message. Here's an example public message.

Comment

Read: Pownce API - it exists, it's just not yet 'open'

Topic: Source open, problem closed Previous Topic   Next Topic Topic: TurboGears 1.1 and Beyond

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use