- Beranda
- Komunitas
- Pemrograman
- attempting to access account thru JSON API - getting error: ...
Edit Komentar Anda
attempting to access account thru JSON API - getting error: session required
Menjadi Anggota Sejak Sep 25, 2012
6 postingan
Feb 22, 2018 at 22:11
Menjadi Anggota Sejak Sep 25, 2012
6 postingan
Hi I posted this yesterday and it seems to have gone missing, so trying again today.
I am trying access my account data with the Webrequest and for the logon request, I am getting a message saying session is required. However, the session is not required according to the documentation and that the session is returned for further calls after.
Any ideas?
I am trying access my account data with the Webrequest and for the logon request, I am getting a message saying session is required. However, the session is not required according to the documentation and that the session is returned for further calls after.
Any ideas?
Enter Boldy
Menjadi Anggota Sejak Jan 05, 2016
1097 postingan
Jul 16, 2018 at 00:49
Menjadi Anggota Sejak Jan 05, 2016
1097 postingan

You need to correctly send your login information.
That is how you generate your session.
Here is the link to the API.
https://www.myfxbook.com/api
If it looks too good to be true, it's probably a scam! Let the buyer beware.
Menjadi Anggota Sejak Sep 25, 2012
6 postingan
Jul 19, 2018 at 00:25
Menjadi Anggota Sejak Sep 25, 2012
6 postingan
thanks for the reply.
I understood, as you suggest, that a login is required to get a session. When I do a login, the error message says I need a session to do a login. Makes no sense.
Thanks.
I understood, as you suggest, that a login is required to get a session. When I do a login, the error message says I need a session to do a login. Makes no sense.
Thanks.
Enter Boldy
Menjadi Anggota Sejak Jan 19, 2021
7 postingan
Jan 26, 2021 at 12:13
Menjadi Anggota Sejak Jan 19, 2021
7 postingan
It may work for you:
Request = 'https://www.myfxbook.com/api/login.json?email=username&password=password'
response = requests.get(Request, verify = False)
data = response.json()
Session = data['session']
path = ('https://www.myfxbook.com/api/get-community-outlook.json?session=' + Session)
response = requests.get(path, verify = False)
Request = 'https://www.myfxbook.com/api/login.json?email=username&password=password'
response = requests.get(Request, verify = False)
data = response.json()
Session = data['session']
path = ('https://www.myfxbook.com/api/get-community-outlook.json?session=' + Session)
response = requests.get(path, verify = False)
Menjadi Anggota Sejak Dec 16, 2020
9 postingan
Mar 18, 2021 at 09:26
Menjadi Anggota Sejak Dec 16, 2020
9 postingan
You should contact the platform or their team for this.
*Penggunaan komersial dan spam tidak akan ditoleransi dan dapat mengakibatkan penutupan akun.
Tips: Memposting URL gambar/YouTube akan otomatis menyematkannya di postingan Anda!
Tips: Ketik tanda @ untuk melengkapi nama pengguna secara otomatis yang berpartisipasi dalam diskusi ini.