Knowledge Base: Data API: Subscriptions

Subscriptions

Please make sure you read the introduction to the data API first.

Attributes

  • id (Integer)
  • project_id (Integer)
  • created_at (Datetime)

Virtual Attributes

  • tag_list (Gets and sets associated tags, comma-separated)

Request Root

http://freshmeat.net/account/sub...

List Subscriptions

GET /account/subscriptions.json

Response:

[
  {
    "subscription": {
      "id": "5678",
      "project_id": "1234",
      "created_at": "2008-07-06T15:38:56Z"
    }
  }
]

Add Subscription

POST /account/subscriptions.json

Request:

{
  "auth_code": "XXX",
  "subscription": {
    "project_id": 1234
  }
}

Response:

Status: 201 Created

Remove Subscription

DELETE /account/subscriptions/#{id}.json

Request:

{
  "auth_code": "XXX"
}

Response:

Status: 200 OK