开发者社区> 浪途> 正文

hasoffers API 研究

简介: hasoffers 官网 :  http://www.hasoffers.com/ hasoffers帮助文档 : http://support.hasoffers.com/ hasoffers API文档:  http://developers.hasoffers.com/#/brand hasoffers后台登陆:  https://XXXX.hasoffers.com/lo
+关注继续查看


hasoffers 官网 :  http://www.hasoffers.com/

hasoffers帮助文档 : http://support.hasoffers.com/

hasoffers API文档:  http://developers.hasoffers.com/#/brand

hasoffers后台登陆:  https://XXXX.hasoffers.com/loginXXXX为公司申请的账号


最近研究了一段时间的hasoffers, 发现这家伙太强大了,一个广告平台做如此强大,让我等开发人员实在没少费心思研究,现在把研究结果记录下来,以供学习


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.

加黑的是比较关键的两个参数  API Key = NetworkToken  , Network ID  =   NetworkId 。提取关键内容才是最重要的。这两个东西在support API 中。

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
      }
    }

剩下的就是研究API了,好繁琐,基本上所有的接口都有了,好强大的,待我等慢慢嗅探。






版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
高德地图JavaScript API开发研究
原文:高德地图JavaScript API开发研究 高德地图JavaScript API是一套用JavaScript 语言编写的应用程序接口,可以通过各种API接口向地图添加内容,创建功能丰富、交互性强的地图应用。
1536 0
去百度API的百度地图准确叠加和坐标转换的解决方案研究
原文:去百度API的百度地图准确叠加和坐标转换的解决方案研究 1.背景 目前项目上如果要使用百度地图,得加载百度的开发包,然后通过百度提供的接口来调用百度地图以及将需要标记的点显示在百度地图中等等。 此方案存在明显劣势: a.对原系统的破坏。
1383 0
去百度API的百度地图准确叠加和坐标转换的解决方案研究
文章版权由作者李晓晖和博客园共有,若转载请于明显处标明出处:http://www.cnblogs.com/naaoveGIS/。 1.背景 目前项目上如果要使用百度地图,得加载百度的开发包,然后通过百度提供的接口来调用百度地图以及将需要标记的点显示在百度地图中等等。
1068 0
Html5 本地文件读取 API 研究使用过程中的意外发现 - MDN
Html5 本地文件读取 API 研究使用过程中的意外发现 - MDN 太阳火神的美丽人生 (http://blog.csdn.net/opengl_es) 本文遵循“署名-非商业用途-保持一致”创作公用协议 转载请保留此句:太阳火神的美丽人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS、Android、Html5、Arduino、pcDuino,否则,出自本博客的文章拒绝转载或再转载,谢谢合作。
1337 0
微博应用研究【5】 api接口 站外应用(收藏)
新浪做事简直就是不懂脑子,给了一堆站外应用的DEMO,却又给了一堆站内应用的接口,而且把旧版的接口地址搞的那么小 旧版api(主要是站外应用)http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3 各个语言SDK或demo(主要也是站外应用)http://open.
1476 0
Skia引擎API整理介绍(skia in Androi“.NET研究”d 2.3 trunk)
  序  通过google, baidu,我们都很难搜索到关于skia引擎方面的文档,skia的官方wiki(http://code.google.com/p/skia)也只有寥寥无几的文字简单介绍了SkCanvas, SkBitmap等几个主要的class,我通过分析源代码,查看jni接口对skia引擎的封装,总结和翻译了下面的一些文字,希望对想在Android平台进行native画图的朋友有所帮助,当然,你也可以直接使用OpenGL来画图。
1512 0
ASP.NET Core Web API 帮助页
ASP.NET Core Web API 帮助页
118 0
一文概览设计Web API 中的细节
一文概览设计Web API 中的细节
86 0
借助 Web Animations API 实现一个鼠标跟随偏移动画
借助 Web Animations API 实现一个鼠标跟随偏移动画
91 0
WebAPI学习(一)——创建Web API程序
WebAPI学习(一)——创建Web API程序
166 0
几种不常用Web API(振动、重力感应、联网状态、系统电量信息、页面可见性、canvas转base64、监听屏幕旋转、元素全屏显示)
navigator对象中有一些不常用的API,以下主要介绍vibrate振动,deviceorientation重力感应,online联网状态,getBattery系统电量信息,visibilitychange页面可见性,toDataURL(canvas转base64),orientationchange监听屏幕旋转和fullScreen元素全屏显示。
123 0
.NET MVC第十章 vue axios解析web api接口
.NET MVC第十章 vue axios解析web api接口
132 0
.NET MVC第九章、Web Api Json序列化与反序列化
.NET MVC第九章、Web Api Json序列化与反序列化
88 0
.NET MVC第八章、Web Api 跨域接口
.NET MVC第八章、Web Api 跨域接口
79 0
【前端】【H5 API】Web存储 Web Storage
【前端】【H5 API】Web存储 Web Storage
147 0
+关注
浪途
到2016年10月,4年的iOS开发了,一边一边学习Java后台开发
文章
问答
视频
相关电子书
更多
数据资源的基础设施API总线
立即下载
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载