ebay api_引入eBay交易API-设置

ebay api

In this tutorial series, I’ll walk you through Ebay’s Trading API. The Trading API allows you to build applications that can be used for selling in Ebay. Here are some examples of things you can do with the API:

在本教程系列中,我将带您了解Ebay的Trading API。 交易API允许您构建可用于在Ebay上销售的应用程序。 以下是您可以使用API​​进行操作的一些示例:

  • retrieve store information

    检索商店信息
  • update store preferences

    更新商店首选项
  • add products to a specific eBay store

    将产品添加到特定的eBay商店
  • end product listings

    最终产品清单
  • update product price

    更新产品价格
  • retrieve product information

    检索产品信息

In this tutorial, we’ll be creating an app that allows users to create a product on eBay through the use of the API.

在本教程中,我们将创建一个应用程序,允许用户通过使用API​​在eBay上创建产品。

注册一个应用 (Register an App)

The first thing that you’ll need to do is register a developer account over at the eBay developer website.

您需要做的第一件事是在eBay开发人员网站上注册开发人员帐户。

Do that, and once you have verified your email, you will be greeted with a screen similar to the following:

这样做,一旦您验证了电子邮件,将看到类似于以下内容的屏幕:

sucess

On that page, click on the ‘Get your application keys’ link, which will lead you to the page where you can generate sandbox and production keys. Then, click the ‘Generate Sandbox Keys’ button to generate the keys that you can use for testing the app that we will be building. Also click on the ‘Generate Production Keys’ button to generate the keys that you can use when you deploy the app. Note that these keys can be used with any of the APIs that eBay provides so you’ll only have to do this once.

在该页面上,单击“获取应用程序密钥”链接,这将带您进入可以生成沙箱和生产密钥的页面。 然后,单击“生成沙盒密钥”按钮以生成可用于测试我们将要构建的应用程序的密钥。 另外,单击“生成生产密钥”按钮以生成可在部署应用程序时使用的密钥。 请注意,这些密钥可以与eBay提供的任何API一起使用,因此您只需执行一次即可。

Once the keys are generated, click on the ‘configure settings’ link on any of the keys (sandbox or production).

生成密钥后,单击任意密钥(沙盒或产品)上的“配置设置”链接。

Under the ‘Customize the eBay User Consent Form’ section click on the ‘Customize the eBay User Consent Form’ link. This will allow you to configure the URL used by your app. This is basically the URL to the home page of the app. Once in there, under the ‘Manage Your RuNames’ section, click on the ‘Generate a RuName for Your Application’ link. A RuName is an equivalent to an app. If you are creating different apps that will interact with different eBay APIs, you can create one RuName for each app. Once a RuName is generated, the following information will be asked of you:

在“自定义eBay用户同意书”部分下,单击“自定义eBay用户同意书”链接。 这将允许您配置应用程序使用的URL。 这基本上是应用程序主页的URL。 进入那里后,在“管理您的RuNames”部分下,单击“为应用程序生成RuName”链接。 RuName与应用程序等效。 如果要创建将与不同的eBay API交互的不同应用程序,则可以为每个应用程序创建一个RuName。 生成RuName后,将询问您以下信息:

  • display title – the title of the app that you want to display when the user gives authority to your app later on. (e.g product creator)

    显示标题 –用户稍后授权给您的应用时要显示的应用的标题。 (例如产品创建者)

  • display description: The display description is the text that describes what your app does. (e.g this app allows users to easily add products to their eBay store)

    显示说明 :显示说明是描述您应用程序功能的文本。 (例如,该应用程序允许用户轻松地将产品添加到其eBay商店中)

  • token return method – the token return method is the method that will be used by the app after the user gives authority to your app. For this, the value supplied should be ‘FetchToken’.

    令牌返回方法 –令牌返回方法是用户授权您的应用后,应用将使用的方法。 为此,提供的值应为“ FetchToken”。

  • authorization type – the type of action that your app does after the user gives authority to your app. This can be either authorization or ID.verification. Supply a value of ‘authorization’ for this field because we need the user to give authority to our app to perform different actions for them.

    授权类型 –用户向您的应用授予权限后,您的应用执行的操作的类型。 这可以是授权或ID.verification。 在此字段中提供“授权”值,因为我们需要用户向我们的应用授予权限才能为他们执行不同的操作。

  • application type – the type of the app. This should be ‘web based’.

    应用程序类型应用程序的类型 。 这应该是“基于网络的”。

  • accept redirect URL – the URL to which the user is redirected when they give authority to the app. Note that eBay only allows https URLs. If you want to follow along later on, I recommend you sign up for an account at openshift.com. The apps that you host there will have https by default, and it’s free.

    接受重定向URL –用户向应用授予权限时将重定向到的URL。 请注意,eBay仅允许使用https URL。 如果您想稍后进行后续操作,建议您在openshift.com上注册一个帐户。 默认情况下,您在那里托管的应用程序将具有https,并且它是免费的。

  • reject redirect URL the URL to which the user is redirected when they reject the app.

    拒绝重定向URL拒绝用户时将用户重定向到的URL。

  • privacy policy UR

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值