Giter Club home page Giter Club logo

mta-html5-sdk's Introduction

Mta-html5-SDK

此项目是腾讯mta平台html5页面统计数据接口sdk,需要php>=5.4。
详细使用方式:

第一步:在composer.json里加入扩展包
"require": {
    	"loliko/mta-html5-sdk" : "dev-master"
    }
    
第二步:composer update

第三步:代码示例
require 'vendor/autoload.php';
use Loliko\MtaApi;

$mmd = new MtaApi(你的mta应用appid , '你的mta应用secret');
print_r($mmd->historyData('2017-11-06' , '2017-11-07' , 'uv'));

详细接口请求方式和需要的参数信息以及错误码请查阅接口文档 ##接口说明 ####接口定义

  • Func
  • public historyData 应用历史趋势数据
  • public hourData 应用小时数据
  • public heartData 应用心跳数据
  • public 实时访客 realTimeData
  • public 新老访客比 compareData
  • public 用户画像 getUserPortrait
  • public 地区数据 areaData
  • public 省市数据 provinceData
  • public 运营商数据 operatorData
  • public 终端属性列表 paraData
  • public 终端信息 paraContentData
  • public 终端属性列表 pageData
  • public 性能监控 pageSpeedData
  • public 访问深度 depthData
  • public 外部链接 sourceData
  • public 入口页面 landData
  • public 离开页面 exitData
  • public 自定义时间 customData
  • public 渠道效果分析 adTagData

####接口参数 请根据开发文档以及函数声明传值

#####注意 不能根据返回的code或者info判断接口是否成功,有的方法没有返回这两个数据

TODO

1.错误处理

更新进度

-----------------------------2017-11-08----------------------------
1.初始化项目

mta-html5-sdk's People

Contributors

zevingao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.