From your app,
POST https://api.quikr.com/app/auth/access_token
Content-Type: application/json { “appId” : “app id”, “signature" : “”}
signature = Hmac-sha1 ("app_secret", data)
where data = email + appId + today’s date in yyyy-MM-dd format
Response will contain the 'token' and the 'token_id'.
这是文件,
https://developer.quikr.com/index.php/documentation#developer_api
根据它,生成访问令牌
我尝试如下,但此代码显示错误,
{error: true, message: "Invalid input Data"}
我的代码,
this.data = 't@gmail.com12342018-01-31';
var postData = {'appId':1242,'signature':Md5.hashStr("7777eh3y3ebe3y3e",this.data)};
var headers = new Headers();
headers.append('Content-Type', 'application/json');
this.http.post('https://api.quikr.com/app/auth/access_token', postData, { headers: headers })
任何人都可以建议我帮忙。谢谢。