APPush v0.1 documentation

This Page

Profile Resource

Each iPhone device will maintain a list of purchased products/items on the server-side. To maintain that list on the Appush Server, a device must generate a set of authentication keys that are unique to the device. This resource gives the device the ability to submit a receipt, view a list of purchased products, and get previously purchased items

POST

Create a new profile token and secret. The HTTP request content-type must be application/json.

Authentication Required

  • Application Token
  • Application Secret

Result

  • 200 - OK. The profile token and secret will be returned as JSON in the response.

Example:

$ curl -i -u I6ieYiJtbH3YPriyR3AK3VZtgSP:48907eb5efbffe9ee23e62e2b9273929 \
   https://appush.com/api/profile -X POST
HTTP/1.1 200 OK
Server: nginx/0.7.62
Date: Fri, 13 Nov 2009 06:59:15 GMT
Content-Type: application/json
Connection: keep-alive
Keep-Alive: timeout=20
Content-Length: 115

{"token":"38d0f91a99c57d189416439ce377ccdcd92639d0", "secret":"7e734e90f9dfc4def902ecd3c2e81c7dd530448d"}