Creating a REST Request

The MyBlogLog Web Services are all REST services. That means you can easily construct request URLs that will work in your browser, on the command line, and in your code.

GET URL Construction

Most API requests will use GET. If the specific documentation requires POST, see the section on POST URL construction below.

All resource URLs start with the hostname along with the version and resemble the following sample:

http://mybloglog.yahooapis.com/v1

Next is the resource:

/community/{community_id}/authors

The recommended approach for sending an AppID is by using the header 'X‐Yahoo‐AppID'. AppID can also be sent in the query string.

Those components form the base URL.

http://mybloglog.yahooapis.com/v1/community/{community_id}/authors

The resource can be followed by optional query parameters, which take the form argument=value, where the arguments and values are url encoded. Multiple parameters are separated by an ampersand (&). The following example lists authors of the community 'MyBlogLog', limiting the results to '5' by the 'count' parameter.

POST URL Construction

Using POST to communicate with the API is a bit different than using GET. All resource URLs still begin with the hostname, service name, and version number:

http://mybloglog.yahooapis.com/v1/community

Note that there is no question mark following the method.

When posting to a resource, the data must be wrapped in XML. Use 'X‐Yahoo‐AppID' in the header. Below is an example:

Ready to get started?

By applying for an Application ID for this service, you hereby agree to the Terms of Use