has offers 文档翻译

简介: 入门品牌API 要求 为了使用该API,您的网络必须是对企业定价计划或专用的解决方案。所有的请求都需要一个API密钥,这是一个随机生成的字符串独特到您的网络。使请求的IP地址必须被提交到白名单的API访问已。此外,所有的请求需要您的网络ID。 创建API密钥 API密钥可以从应用程序中创建: 登录到应用程序,并悬停在导航栏的支持选项卡,然后单击从下


入门品牌API

要求

  • 为了使用该API,您的网络必须是对企业定价计划或专用的解决方案。
  • 所有的请求都需要一个API密钥,这是一个随机生成的字符串独特到您的网络。
  • 使请求的IP地址必须被提交到白名单的API访问已。
  • 此外,所有的请求需要您的网络ID。

创建API密钥

  • API密钥可以从应用程序中创建:
    • 登录到应用程序,并悬停在导航栏的支持选项卡,然后单击从下拉列表中选择“API”链接。
    • 如果你不已经有一个API密钥将有导航栏下方的通知的链接来创建一个。
    • 一旦你创建了一个,页面会显示您的私有API密钥。它会以字母“NET”。
  • 您也可以向您的客户经理有关创建和获取您的API密钥

虽然名单IP地址

  • 白名单的IP地址可以从应用程序中加入:
    • 将鼠标悬停在导航栏的支持选项卡,然后单击从下拉列表API链接。
    • 这里将是你的API密钥提交的IP地址白名单下的一个盒子。
  • 附加IP地址可以使用API方法被添加到同时列表: 应用:: whitelistNetworkApiIp

速率限制

  • 网络被限制在50 API调用每10秒。如果您需要更高的限制,请联系您的客户经理。

提出请求

您的网络的API密钥和网络ID用于认证通过API请求。每个API请求必须有一个有效的API密钥和网络ID组合。当进行API请求,用于你的API Key值NetworkToken参数,并为您的网络ID NetworkId参数。

用法示例

  • 网络ID是演示
  • API密钥是 NETabc123
  • 要求是 Offer:: findById
  • 报价ID是42
  • 请求URL:

  • https://api.hasoffers.com/Api/json?NetworkId=demo&NetworkToken=NETabc123&Target=Offer&Method=findById&id=42
  • Sample Response:
    {
      "request": {
        ...collapsed JSON data
      },
      "response": {
        "status": 1,
        "httpStatus": 200,
        "data": {
          "Offer": {
            "id": "42",
            "name": "My Test Offer"
          }
        },
        "errors": [],
        "errorMessage": null
      }
    }
    		









Getting Started with the Brand API

Requirements

  • In order to use the API, your network must be on the Enterprise pricing plan or a Dedicated solution.
  • All requests require an API Key, which is a randomly generated string unique to your network.
  • IP address making request must have been submitted to the white-list for API access.
  • Additionally, all requests require your Network ID.

Creating an API Key

  • API keys can be created from within the application:
    • Log into the application and hover over the Support tab in the Navigation Bar, and click on the "API" link from the drop-down.
    • If you don't already have an API Key there will be a notice underneath the Navigation Bar with a link to create one.
    • Once you've created one, the page will display your private API Key. It will begin with the letters 'NET'.
  • You can also talk to your Account Manager about creating and obtaining your API Key

While-list IP Address

  • White-listing an IP address can be added from within the application:
    • Hover over the Support tab in the Navigation Bar and click on the API link from the drop-down.
    • There will be a box underneath your API Key to submit an IP address to whitelist.
  • Additional IP addresses can be added to the while-list using the API method: Application::whitelistNetworkApiIp

Rate Limiting

  • Networks are limited to 50 API calls every 10 seconds. If you require a higher limit, please contact your account manager.

Making a Request

Your Network's API Key and Network ID are used to authenticate requests through the API. Every API request must have a valid API Key and Network ID combination. When making an API Request, use your API Key value for the NetworkToken parameter, and your Network ID for the NetworkId parameter.

Example Usage

  • Network ID is demo
  • API key is NETabc123
  • Request is Offer::findById
  • Offer ID is 42
  • Request URL:
    https://api.hasoffers.com/Api/json?NetworkId=demo&NetworkToken=NETabc123&Target=Offer&Method=findById&id=42
  • Sample Response:
    {
      "request": {
        ...collapsed JSON data
      },
      "response": {
        "status": 1,
        "httpStatus": 200,
        "data": {
          "Offer": {
            "id": "42",
            "name": "My Test Offer"
          }
        },
        "errors": [],
        "errorMessage": null
      }
    }
    		


目录
相关文章
|
1月前
|
人工智能 搜索推荐 API
『GitHub项目圈选02』一款可实现视频自动翻译配音为其他语言的开源项目
『GitHub项目圈选02』一款可实现视频自动翻译配音为其他语言的开源项目
|
5月前
|
机器学习/深度学习 自然语言处理 API
文档翻译有哪些开源的工具
文档翻译有哪些开源的工具
|
5月前
|
自然语言处理
有道词典使用离线翻译
有道词典使用离线翻译
104 0
|
11月前
|
机器学习/深度学习
斯坦福博士生自制PPT生成神器ChatBCG免费开放!一键生成自定义模版,还能导出PDF
斯坦福博士生自制PPT生成神器ChatBCG免费开放!一键生成自定义模版,还能导出PDF
145 0
|
定位技术
简直完美!百度文库付费文档可以免费下载了!
hello,大家好,我是Jackpop,感谢您对平凡而诗意的关注。 今天,来跟大家聊一下百度文库。 我感觉百度文库是一个经久不衰的话题,蕴含着大量有价值的内容,尤其是对在校学生、教师等人员,非常有价值。
简直完美!百度文库付费文档可以免费下载了!
|
机器学习/深度学习 uml
CSDN发文Markdown语法助手
CSDN发文Markdown语法助手
70 0
CSDN发文Markdown语法助手
|
Dart 前端开发 JavaScript
GitHub 中文排行榜,高分优秀中文项目一网打尽!
GitHub 中文排行榜,高分优秀中文项目一网打尽!
1067 0
GitHub 中文排行榜,高分优秀中文项目一网打尽!
|
文字识别 开发者 Python
最新!有道文档翻译免费获取方法,有道翻译文档复制方法,解决有道文档翻译不能复制问题
最新!有道文档翻译免费获取方法,有道翻译文档复制方法,解决有道文档翻译不能复制问题
746 0
最新!有道文档翻译免费获取方法,有道翻译文档复制方法,解决有道文档翻译不能复制问题
好工具推荐系列:copytranslator翻译软件
好工具推荐系列:copytranslator翻译软件
184 0
|
自然语言处理 Java 测试技术
使用现有在线翻译服务进行代码翻译的体验
使用谷歌, 百度, 有道等在线翻译服务对代码进行翻译并比较效果. Use online translation service, including Google, baidu, youdao, etc. to translate source code and compare results.
1015 0