GetProfile(string psnId, string location)

This method collect the basic information for the selected Playstation Network Profile ID.
See the detailed information about the method GetProfile(string psnId, string location)
psnId: Playstation Network ID to have the information collected. This parameter is mandatory.
location: Playstation Network Location to have the information collected. The supported value for this API version is "US". If nothing is passed the "US" location will be used by default.

Detailed information about this method

This page explain the ways this method can be used to retrieve the Playstation Network profile information.

Soap 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /psnapi/0.8.3849.36542/PlaystationNetworkAPI.asmx HTTP/1.1
Host: miguel.ms
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://psnapi.codeplex.com/GetProfile"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetProfile xmlns="http://psnapi.codeplex.com/">
      <psnId>string</psnId>
      <location>string</location>
    </GetProfile>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetProfileResponse xmlns="http://psnapi.codeplex.com/">
      <GetProfileResult>
        <Location>string</Location>
        <PsnId>string</PsnId>
        <AvatarSmall>string</AvatarSmall>
        <Level>int</Level>
        <Progress>int</Progress>
        <TrophyCount>
          <Platinum>int</Platinum>
          <Gold>int</Gold>
          <Silver>int</Silver>
          <Bronze>int</Bronze>
          <Total>int</Total>
        </TrophyCount>
        <PlayedGames>
          <PlayedGame>
            <Progress>int</Progress>
            <TrophyCount xsi:nil="true" />
          </PlayedGame>
          <PlayedGame>
            <Progress>int</Progress>
            <TrophyCount xsi:nil="true" />
          </PlayedGame>
        </PlayedGames>
      </GetProfileResult>
    </GetProfileResponse>
  </soap:Body>
</soap:Envelope>

Soap 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /psnapi/0.8.3849.36542/PlaystationNetworkAPI.asmx HTTP/1.1
Host: miguel.ms
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetProfile xmlns="http://psnapi.codeplex.com/">
      <psnId>string</psnId>
      <location>string</location>
    </GetProfile>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetProfileResponse xmlns="http://psnapi.codeplex.com/">
      <GetProfileResult>
        <Location>string</Location>
        <PsnId>string</PsnId>
        <AvatarSmall>string</AvatarSmall>
        <Level>int</Level>
        <Progress>int</Progress>
        <TrophyCount>
          <Platinum>int</Platinum>
          <Gold>int</Gold>
          <Silver>int</Silver>
          <Bronze>int</Bronze>
          <Total>int</Total>
        </TrophyCount>
        <PlayedGames>
          <PlayedGame>
            <Progress>int</Progress>
            <TrophyCount xsi:nil="true" />
          </PlayedGame>
          <PlayedGame>
            <Progress>int</Progress>
            <TrophyCount xsi:nil="true" />
          </PlayedGame>
        </PlayedGames>
      </GetProfileResult>
    </GetProfileResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /psnapi/0.8.3849.36542/PlaystationNetworkAPI.asmx/GetProfile?psnId=string&location=string HTTP/1.1
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<Profile xmlns="http://psnapi.codeplex.com/">
  <Location>string</Location>
  <PsnId>string</PsnId>
  <AvatarSmall>string</AvatarSmall>
  <Level>int</Level>
  <Progress>int</Progress>
  <TrophyCount>
    <Platinum>int</Platinum>
    <Gold>int</Gold>
    <Silver>int</Silver>
    <Bronze>int</Bronze>
    <Total>int</Total>
  </TrophyCount>
  <PlayedGames>
    <PlayedGame>
      <Progress>int</Progress>
      <TrophyCount>
        <Platinum>int</Platinum>
        <Gold>int</Gold>
        <Silver>int</Silver>
        <Bronze>int</Bronze>
        <Total>int</Total>
      </TrophyCount>
    </PlayedGame>
    <PlayedGame>
      <Progress>int</Progress>
      <TrophyCount>
        <Platinum>int</Platinum>
        <Gold>int</Gold>
        <Silver>int</Silver>
        <Bronze>int</Bronze>
        <Total>int</Total>
      </TrophyCount>
    </PlayedGame>
  </PlayedGames>
</Profile>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /psnapi/0.8.3849.36542/PlaystationNetworkAPI.asmx/GetProfile HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: length

psnId=string&location=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<Profile xmlns="http://psnapi.codeplex.com/">
  <Location>string</Location>
  <PsnId>string</PsnId>
  <AvatarSmall>string</AvatarSmall>
  <Level>int</Level>
  <Progress>int</Progress>
  <TrophyCount>
    <Platinum>int</Platinum>
    <Gold>int</Gold>
    <Silver>int</Silver>
    <Bronze>int</Bronze>
    <Total>int</Total>
  </TrophyCount>
  <PlayedGames>
    <PlayedGame>
      <Progress>int</Progress>
      <TrophyCount>
        <Platinum>int</Platinum>
        <Gold>int</Gold>
        <Silver>int</Silver>
        <Bronze>int</Bronze>
        <Total>int</Total>
      </TrophyCount>
    </PlayedGame>
    <PlayedGame>
      <Progress>int</Progress>
      <TrophyCount>
        <Platinum>int</Platinum>
        <Gold>int</Gold>
        <Silver>int</Silver>
        <Bronze>int</Bronze>
        <Total>int</Total>
      </TrophyCount>
    </PlayedGame>
  </PlayedGames>
</Profile>
This document was updated for the release "Version 0.8.3849.36542".

Last edited Jul 18, 2010 at 7:36 AM by jmtvms, version 6

Comments

No comments yet.