Edit Your Comment
Get daily gain value
會員從Jan 08, 2019開始
1帖子
May 27, 2021 at 18:07
會員從Jan 08, 2019開始
1帖子
Hi there
I'm new here, can somebody guide me on how can I fetch get-daily-gain results via laravel?
I am using following code
$client = new Client();
$res = $client->request('GET', 'https://www.myfxbook.com/api/get-daily-gain.json?', [
'form_params' => [
'session' => 'DSL07vu14QxHWErTIAFrH40',
'id' => '3353768',
'start' => '2000-01-01',
'end' => '2021-01-01'
]
]);
dd($res);
echo $res->getStatusCode();
// 200
echo $res->getHeader('content-type');
// 'application/json; charset=utf8'
echo $res->getBody();
// {'type':'User'...'
But the response doesn't come as expected. Where can I get the account id and session id?
Thank you
I'm new here, can somebody guide me on how can I fetch get-daily-gain results via laravel?
I am using following code
$client = new Client();
$res = $client->request('GET', 'https://www.myfxbook.com/api/get-daily-gain.json?', [
'form_params' => [
'session' => 'DSL07vu14QxHWErTIAFrH40',
'id' => '3353768',
'start' => '2000-01-01',
'end' => '2021-01-01'
]
]);
dd($res);
echo $res->getStatusCode();
// 200
echo $res->getHeader('content-type');
// 'application/json; charset=utf8'
echo $res->getBody();
// {'type':'User'...'
But the response doesn't come as expected. Where can I get the account id and session id?
Thank you
*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。