<<O>>  Difference Topic AnonymousRESTRequests (r1.1 - 01 Nov 2007 - Home.michal)
Line: 1 to 1
Added:
>
>
META TOPICPARENT APIDraft

Anonymous REST Requests

Some resources can be accessed anonymously. No authentication is required to make an anonymous request. For example, the public data in a user's profile can be accessed by anyone.

Example

Sample Request

GET /User/Profile?UserID=jpearce HTTP/1.0
Content-Type: text/html
Date: Sun, 26 Jun 2006 07:13:49 GMT

Sample Response

HTTP/1.1 200 OK
x-gp-request-id: kWKN9dJip1L
x-gp-api-version: 20060620
Date: Sun, 26 Jun 2006 07:13:49 GMT
Content-Type: text/xml
Content-Length: 573
Connection: close
Server: GPAPI

<?xml version="1.0" encoding="UTF-8"?>
<UserProfileResult>
   <Country>United States</Country>
   <IsPremium>Yes</IsPremium>
   <Language>en</Language>
   <LastGameTime>2006-08-12</LastGameTime>
   <LastWebTime>2006-08-12</LastWebTime>
   <Level>6</Level>
   <RegistrationDate>2006-08-12</RegistrationDate>
   <UserID>MeowMeow</UserID>
</UserProfileResult>

If the URL of the API was gpapi.gopets.net, then you could get the same result XML by typing http://api.gopets.net/User/Profile?UserID=jpearce in a browser.

Back to APIDraft

Revision -
Revision r1.1 - 01 Nov 2007 - 08:54 - Home.michal