我使用php在Etsy中创建一个清单,我向api调用“数量、标题、描述、价格、who_made、when_made、is_supply”发送以下参数。我以参考这里的形式跟踪这份文档
这就是流程。
这些都是在创建清单时使用的fine.But,我得到了以下错误。
"Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect)"3.创建清单所遵循的过程
$url = "https://openapi.etsy.com/v2/listings/";
$params = array('description' => 'thisisdesc', 'price'=>'1.00', 'quantity'=>'2', 'title'=>'thisistitle', 'who_made'=>'collective', 'is_supply'=>'false','when_made'=>'2010_2015', 'category_id' => '69105467','shipping_template_id' => '110906760173');
$data = $oauth->fetch($url, $params , OAUTH_HTTP_METHOD_POST);
$json = $oauth->getLastResponse();
print_r($json);它显示错误message.Invalid auth/坏请求。
请给我任何想法/建议。
发布于 2016-09-16 21:58:29
变化
$url = "https://openapi.etsy.com/v2/listings/";至
$url = "https://openapi.etsy.com/v2/listings";额外的/最后的可能是引起问题的原因。
您能否尝试删除“/”,并在可能的情况下显示响应详细信息。
https://stackoverflow.com/questions/33469991
复制相似问题