Skip to topic | Skip to bottom
Home
GoPedia
GoPedia.AnonymousRESTRequestsr1.1 - 01 Nov 2007 - 08:54 - Home.michaltopic end

Start of topic | Skip to actions

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
to top


You are here: GoPedia > GoPetsProducts > APIDraft > AnonymousRESTRequests

to top

Copyright © 2005-2009 by GoPets LTD. All rights reserved. All material on this collaboration platform is the property of the contributing authors.
Disclaimers http://creativecommons.org/licenses/by/2.5/