0
我使用php oAuth创建了Etsy列表。我将以下参数发送给api调用“数量,标题,描述,价格,who_made,when_made,is_supply”。 我正在关注的文档作为参考here在Etsy中使用PHP api创建列表不起作用
这是过程流程
使用OAuth与Etsy的身份验证。
获取范围使用此API调用https://openapi.etsy.com/v2/oauth/scopes
这些工作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认证/错误的请求。
任何想法/建议请。