I want to setup to get data from Bizfly app according to the following document
https://crm.bizfly.vn/apidoc/doc/#api-Help_Support-apiKey. The values in the header are encoded for example the cb-access-sign field I had to code python connect to look like this:
time_now = str(int(time.time()))
message = str(time_now).encode() + bizfly_project_token.encode()
key = api_secret.encode()
signature = hmac.new(key, message, hashlib.sha512).hexdigest()
df = pd.DataFrame()
url = '
https://api.bizfly.vn/crm/_api/base-table/find'
headers = {
'cb-access-key': access_token,
'cb-project-token': bizfly_project_token,
'cb-access-timestamp':time_now,
'cb-access-sign': signature,
'Content-Type': 'application/x-www-form-urlencoded'
}
payload = {
"table": data_table,
"limit": 1000,
"skip": i,
"output": "by-key",
"query" : query
}
How to create a valid signature?