<<O>>  Difference Topic ServerGoodsInfoGet (r1.6 - 29 Oct 2008 - Home.rallison)

GET /Server/GoodsInfo Command

Line: 48 to 48

DogCanUse? 1 means a dog can use this item, a 0 means a dog cannot use this. 1
PandaCanUse? 1 means a panda can use this item, a 0 means a panda cannot use this. 1
Description A textual description of this item, including damage and defense values for applicable items. Good basic pet food for all types.
Added:
>
>
GoodsType? Normal, Clothing, Container or Unknown. Clothing
AttachPositions? Integer representation of the attach position(s) of the clothing item. 262144
AttachPositionsBitField? Bitfield representation of the attach position(s) of the clothing item. 000000000000000000100000000000

Example

Sample Request


Changed:
<
<
GET /Server/GoodsInfo?GoodsNo=60 HTTP/1.0
>
>
GET /Server/GoodsInfo?GoodsNo=4060090 HTTP/1.0

Content-Type: text/html Date: Mon, 28 Jan 2008 07:13:49 GMT
Line: 71 to 74

Added:
>
>
000000000000000000100000000000 A cute little baby dragon minipet. But beware the fiery breath!

0
Changed:
<
<
1
>
>
30

1 1 0
Changed:
<
<
10 0 0 2 109 Pet feed 01 Food Pet Food
>
>
-1 5 7 4 406 Micro Pet 04 Toy Blue Baby Dragon (Cat) Clothing 262144

0 0
Changed:
<
<
15 0 60
>
>
0 2000 4060090 1 0 0

0
Changed:
<
<
http://www.gopets.net/files/goodsimg/webimg_00000060.jpg 0.5
>
>
http://www.gopets.net/files/goodsimg/webimg_04060090.jpg 0

0
Deleted:
<
<
1 1 1 Good basic pet food for all types.

 <<O>>  Difference Topic ServerGoodsInfoGet (r1.5 - 02 Feb 2008 - Home.rallison)

GET /Server/GoodsInfo Command

Line: 43 to 43

PEKBuffTime? The length of time the PEK buffs will last upon use. -1 means infinite buff time. 10
DecorativeItem? 1 means this item is a decorative item, 0 means it is not a decorative item. 0
QuenchHunger? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less hungry. 0.5
Changed:
<
<
QuenchThirst? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less thirsty. 0.5
>
>
QuenchThirst? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less thirsty. 0

CatCanUse? 1 means a cat can use this item, a 0 means a cat cannot use this. 1
DogCanUse? 1 means a dog can use this item, a 0 means a dog cannot use this. 1
PandaCanUse? 1 means a panda can use this item, a 0 means a panda cannot use this. 1
Added:
>
>
Description A textual description of this item, including damage and defense values for applicable items. Good basic pet food for all types.

Example

Line: 95 to 96

0 1 1
Changed:
<
<
1
>
>
1 Good basic pet food for all types.

 <<O>>  Difference Topic ServerGoodsInfoGet (r1.4 - 01 Feb 2008 - Home.rallison)

GET /Server/GoodsInfo Command

Line: 40 to 40

PEKKarma The Karma boost that using/wearing this item gives to your pet. 0
PEKEnergy The Energy boost that using/wearing this item gives to your pet. 0
PEKPhysical The Physical boost that using/wearing this item gives to your pet. 2
Changed:
<
<
PEKBuffTime? The length of time the PEK buffs will last upon use. 10
>
>
PEKBuffTime? The length of time the PEK buffs will last upon use. -1 means infinite buff time. 10

DecorativeItem? 1 means this item is a decorative item, 0 means it is not a decorative item. 0
QuenchHunger? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less hungry. 0.5
QuenchThirst? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less thirsty. 0.5
 <<O>>  Difference Topic ServerGoodsInfoGet (r1.3 - 01 Feb 2008 - Home.rallison)

GET /Server/GoodsInfo Command

Line: 44 to 44

DecorativeItem? 1 means this item is a decorative item, 0 means it is not a decorative item. 0
QuenchHunger? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less hungry. 0.5
QuenchThirst? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less thirsty. 0.5
Added:
>
>
CatCanUse? 1 means a cat can use this item, a 0 means a cat cannot use this. 1
DogCanUse? 1 means a dog can use this item, a 0 means a dog cannot use this. 1
PandaCanUse? 1 means a panda can use this item, a 0 means a panda cannot use this. 1

Example

Line: 90 to 93

http://www.gopets.net/files/goodsimg/webimg_00000060.jpg 0.5 0
Added:
>
>
1 1 1

 <<O>>  Difference Topic ServerGoodsInfoGet (r1.2 - 30 Jan 2008 - Home.rallison)

GET /Server/GoodsInfo Command

Line: 32 to 32

CategoryNo? The CategoryNo? corresponding to the CategoryName?. 01
SubCategoryName? The name of the specific subcategory of this item. Pet feed
SubCategoryNo? The SubCategoryNo? corresponding to the SubCategoryNo?. 109
Added:
>
>
CustomizationPossible? 1 means this item can be customized using the custom creation tool, 0 means it cannot be customized. 0
ItemLevelNo? The level number of this item (minimum level at which this item is usable). 1
CanResellItem? 1 means this item can be resold by the user to another user, 0 means it cannot be resold. 1
CanGiftItem? 1 means this item can be gifted to another user, 0 means it cannot be gifted. 1
IsPremiumItem? 1 means this item is a Premium item, 0 means it is not a Premium item. 0
PEKKarma The Karma boost that using/wearing this item gives to your pet. 0
PEKEnergy The Energy boost that using/wearing this item gives to your pet. 0
PEKPhysical The Physical boost that using/wearing this item gives to your pet. 2
PEKBuffTime? The length of time the PEK buffs will last upon use. 10
DecorativeItem? 1 means this item is a decorative item, 0 means it is not a decorative item. 0
QuenchHunger? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less hungry. 0.5
QuenchThirst? A float value in the range [0, 5], in increments of 0.5. If this value is greater than 0, your pet will become less thirsty. 0.5

Example

Line: 55 to 67

Added:
>
>
0 1 1 1 0 10 0 0 2

109 Pet feed 01
Line: 65 to 86

15 0 60
Added:
>
>
0

http://www.gopets.net/files/goodsimg/webimg_00000060.jpg
Added:
>
>
0.5 0

 <<O>>  Difference Topic ServerGoodsInfoGet (r1.1 - 29 Jan 2008 - Home.rallison)
Line: 1 to 1
Added:
>
>

GET /Server/GoodsInfo Command

The GET /Server/GoodsInfo command gets the goods information for a given ItemNo or GoodsNo.

Authentication Required

Anonymous requests are allowed. Documentation for authentication of REST Requests can be found here.

Parameters

Parameter Description Example Required
GoodsNo A unique number representing a good. ?GoodsNo=6584 Required, unless ItemNo is specified.
ItemNo A unique number representing a specific instance of a good. ?ItemNo=3432 Required, unless GoodsNo is specified.

For example,

GET /Server/GoodsInfo?GoodsNo=60

The result will be a ServerGoodsInfoResult field that will contain goods information.

Item Field

Field Description Example
Name The name of this item. Pet Food
Gold Gold shell cost of this item. 0
Pink Pink shell cost of this item. 0
Green Green shell cost of this item. 15
Prize Prize shell cost of this item. 0
GoodsNo The GoodsNo representing this item. 60
ItemImageURL A URL pointing to a graphical representation of the item. http://www.gopets.net/files/goodsimg/webimg_00000060.jpg
CategoryName The name of the general category of this item. Food
CategoryNo The CategoryNo corresponding to the CategoryName. 01
SubCategoryName The name of the specific subcategory of this item. Pet feed
SubCategoryNo The SubCategoryNo corresponding to the SubCategoryNo. 109

Example

Sample Request

GET /Server/GoodsInfo?GoodsNo=60 HTTP/1.0
Content-Type: text/html
Date: Mon, 28 Jan 2008 07:13:49 GMT

Sample Response

HTTP/1.1 200 OK
x-gp-request-id: kWKN9dJip1L
x-gp-api-version: 20060620
Date: Mon, 28 Jan 2008 07:13:49 GMT
Content-Type: application/xml
Content-Length: 863
Connection: close
Server: GPAPI

<?xml version="1.0" encoding="UTF-8" ?>
<ServerGoodsInfoResult>
   <SubCategoryNo>109</SubCategoryNo>
   <SubCategoryName>Pet feed</SubCategoryName>
   <CategoryNo>01</CategoryNo>
   <CategoryName>Food</CategoryName>
   <Name>Pet Food</Name>
   <Gold>0</Gold>
   <Pink>0</Pink>
   <Green>15</Green>
   <Prize>0</Prize>
   <GoodsNo>60</GoodsNo>
   <ItemImageURL>http://www.gopets.net/files/goodsimg/webimg_00000060.jpg</ItemImageURL>
</ServerGoodsInfoResult>

Back to Server API Operations

-- Home.rallison - 28 Jan 2008

View topic | Diffs | r1.6 | > | r1.5 | > | r1.4 | More
Revision r1.1 - 29 Jan 2008 - 05:48 - Home.rallison
Revision r1.6 - 29 Oct 2008 - 10:20 - Home.rallison