在API的OAuth身份验证连接到Etsy的 [英] OAuth authentication in API to connect to ETSY

查看:593
本文介绍了在API的OAuth身份验证连接到Etsy的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个API连接到Etsy的和获取订单信息。他们需要认证通过OAuth。

I am trying to create an API to connect to ETSY and obtain orders information. They require authentication with OAuth.

我要寻找一个脚本,可以做OAuth的一步依赖于外部库,而不是在pre-安装的服务器软件包,如ipage.com(我目前的主机)未安装的软件包的OAuth

I am looking for a script that can do the OAuth step relying on an external library, and not on a pre-installed server package, as ipage.com (my current host) does not have the OAuth package installed.

推荐答案

不知道你在哪里得到了来自正是code,但要实例化正确类是 \\ OAuth的\\您好!OAuth1 \\服务\\ Etsy的。库中的每个服务都有它自己的类。

Not sure where you got that code from exactly, but the correct class you want to instantiate is \OAuth\OAuth1\Service\Etsy. Each service in the library has its own class.

您不必看个人实现与您的应用程序连接的用户。我们已经抽象为你的那部分。最简单的方法,让你开始与Etsy的服务是的例子

You don't have to look at the individual implementations for connecting users with your app. We already have abstracted that part for you. The easiest way to get you started with the Etsy service is to copy the example.

您可以将您的密钥和密码 rel=\"nofollow\">

You can add your key and secret here.

一旦用户批准了您的应用程序,你可以开始对服务的请求。这方面的例子可以发现 rel=\"nofollow\">。

Once the user has approved your app you can start making requests to the service. An example of this can be found here.

从你那点可以简单地通过做 $ etsyService-&GT提出请求,请求('/不管/你/想/要/获取')通过选择从 http://www.etsy.com/developers/documentation 的正确路径。

From that point on you can simply make requests by doing $etsyService->request('/whatever/you/want/to/get') by choosing the correct path from http://www.etsy.com/developers/documentation.

这篇关于在API的OAuth身份验证连接到Etsy的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆