Newzbin DocumentationMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

Newzbin API:Bookmarks

From Newzbin Documentation

Contents

[edit] What is it?

The bookmarks API grants authenticated access to a user's report bookmarks for external manipulation.

The user must be a Premium Member to use this API.

[edit] Technical Specifications

This API is implemented on Newzbin v3 (http://v3.newzbin.com or http://www.newzbin.com) only - it is not available on the old "v2" site, at http://v2.newzbin.com.

You access it by sending a standard application/x-www-form-urlencoded POST request to http://www.newzbin.com/api/bookmarks/

[edit] Mandatory Variables

You must supply the following querystring parameters:

username and password are hopefully self-explanatory.

[edit] action

This field describes what you want the API to do. The following arguments are permitted:

When asking the API to delete IDs, you must also supply the reportids parameter, which can contain one or more ReportIDs to delete. Separate more than one with commas.

[edit] Optional Variables

These variables are not required (unless noted), but will define the behaviour of certain actions when supplied. If supplied for an action for which they will have no effect, they are silently ignored.

[edit] sortby

Sort the returned list by the given column. The available sort columns are:

If this parameter is not supplied, bookmarked_time is assumed.

[edit] List of Return Codes

The HTTP response code is used to communicate errors (or success) to you. It will be set to one of the following (the text in parentheses is the reason why it was set, and will not actually be in the response).

[edit] Successful Response

[edit] Fetching

The only successful response is a HTTP response of 200. A 204 indicates the request is valid, but no Bookmarks are being returned.

Upon receiving code 200, you should read the body for results. It's formatted much like an XOVER from a news server.

The fields are TAB separated, and they are:

For example:

2850300 5045249669      Sorcerer (1977)
3003603 5088997637      Brassed Off (1996)

[edit] Deleting

If you receive a 200 response code to a delete, then you should check the body for a single integer, which describes how many reports have been deleted.

This can be anything from 0 (no reports deleted - trying to delete an ID that wasn't bookmarked etc) upwards.

[edit] Technical Limitations

This section describes shortcomings in the current incarnation of the interface; ie things we'd like to fix in the future but we're not sure how to do it yet.

[edit] Updates to Service/this Document

[newest entries at the top]

Retrieved from "http://docs.newzbin.com/index.php/Newzbin_API:Bookmarks"

This page has been accessed 555 times. This page was last modified 16:21, 3 July 2008.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...