0

Yahoo Catalog API

Hello everyone!

I am trying to use the Yahoo Catalog API, but it keeps throwing "HTTP/1.1 401 Authorization Required". I am using hurl.it and this is my complete request

<ystorewsRequest>
<Version>1.0</Version>
<StoreID>yhst-388058068XXXXX</StoreID>
<SecurityHeader>
<PartnerStoreContractToken>ypa-002639XXXXXX</PartnerStoreContractToken>
</SecurityHeader>
<Verb>create</Verb>
<ResourceList>
<Catalog>
<ItemList>
<Item>
<ID>autoitem12</ID>
<Name>autoitem12</Name>
<Code><Value>autoitem12</Value></Code>
<Price>5.0</Price>
<SalePrice>5.0</SalePrice>
<ShipWeight>5</ShipWeight>
<Orderable>yes</Orderable>
<Taxable>yes</Taxable>
<OptionList>
<Option>
<Name>Monogram</Name>
<ValueList>
<Value>test monogram1</Value>
</ValueList>
</Option>
<Option>
<Name>Inscription</Name>
<ValueList>
<Value>Front-side   Engraving</Value>
<Value>12</Value>
</ValueList>
</Option>
</OptionList>   
<TableId>custom-options</TableId>
</Item>
</ItemList>
</Catalog>
</ResourceList>
</ystorewsRequest>

and this is the response:

HTTP/1.1 401 Authorization Required
Date: Tue, 02 Jul 2013 18:52:24 GMT
P3P: policyref="<http://info.yahoo.com/w3c/p3p.xml>", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
Cache-Control: private
Last-Modified: Sun, 20 Jan 2013 20:09:38 GMT
Accept-Ranges: bytes
Content-Length: 208
Connection: close
Content-Type: application/xml

<?xml version='1.0' encoding='UTF-8'?>
<ystorewsResponse>
  <ErrorMessages>
    <Error>
      <Code>
         10009 
      </Code>
      <Message>
         Auth Required 
      </Message>
    </Error>
  </ErrorMessages>
</ystorewsResponse>

I have tried specifying the "HTTP basic" header, but every time I get the SAME error.

by
1 Reply
  • Did you figure this out? Are you using an HTTPS url?

    0

Recent Posts

in General Discussion at YDN