Query daily traffic

Created by Yee Sin Lum, Modified on Fri, 17 Jun 2022 at 01:51 AM by Yee Sin Lum

Query daily traffic

interface address

Hostname/openapi/v1/openApiLimitAccess/queryDailyAccessTimesLog

Request header

User-Agent: openApi

Content-Type: application/json; charset=utf-8

Accept-encoding: gzip,deflate

Time-stamp: 1437528688233

Data-signature: BF706E6AC693BA3B1BABD32E6713431D

Request method

POST

Request body

{

     "appId": "abcdefghijklmn",

     "beginDate": "2016-12-23",

     "endDate": "2016-12-30"

}

parameter name

Is it necessary

Types of

Instructions

appId

Yes

String

Kybio configured access credentials
Any store's AppId can find out all traffic configurations of the current store and chain store

beginDate

Yes

String

Start date, format yyyy-MM-dd

endDate

Yes

String

End date, format yyyy-MM-dd
endDate – beginDate <=7 days

Return result

{

     "status": "success",

     "messages": [],

     "data": [

          {

               "appId": "EC48AD85DCDDF5D69567C82E4565B127",

               "accessDate": "2016-12-23",

               "limitTimes": 3000,

               "haveAcessTimes": 996

          },

          {

               "appId": "EC48AD85DCDDF5D69567C82E4565B127",

               "accessDate": "2016-12-24",

               "limitTimes": 3000,

               "haveAcessTimes": 456

          }

     ]

}

Field name

Types of

Instructions

Status

String

Whether the request is processed correctly, return success or error, case-insensitive

Messages

String[]

Processing result message

errorCode

Int

Business process error code, see error code table

Data

Json

Visiting entity data

appId

String

The appId corresponding to the account

limitTimes

Long

Daily traffic

accessDate

String

Access date in the format yyyy-MM-dd

haveAcessTimes

Long

Used visits

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article