- Ev
- Topluluk
- Programlama
- attempting to access account thru JSON API - getting error: ...
Advertisement
Edit Your Comment
attempting to access account thru JSON API - getting error: session required
Sep 25, 2012 zamanından beri üye
6 iletiler
Feb 22, 2018 at 22:11
Sep 25, 2012 zamanından beri üye
6 iletiler
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
Jan 05, 2016 zamanından beri üye
1097 iletiler
Jul 16, 2018 at 00:49
Jan 05, 2016 zamanından beri üye
1097 iletiler

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.
Sep 25, 2012 zamanından beri üye
6 iletiler
Jul 19, 2018 at 00:25
Sep 25, 2012 zamanından beri üye
6 iletiler
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
Jan 19, 2021 zamanından beri üye
7 iletiler
Jan 26, 2021 at 12:13
Jan 19, 2021 zamanından beri üye
7 iletiler
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 = ('http://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 = ('http://www.myfxbook.com/api/get-community-outlook.json?session=' + Session)
response = requests.get(path, verify = False)
Dec 16, 2020 zamanından beri üye
9 iletiler
Mar 18, 2021 at 09:26
Dec 16, 2020 zamanından beri üye
9 iletiler
You should contact the platform or their team for this.

*Ticari kullanım ve istenmeyen e-postalara müsamaha gösterilmez ve hesabın feshedilmesine neden olabilir.
İpucu: Bir resim/youtube urlsi yayınlamak, onu otomatik olarak gönderinize gömer!
İpucu: Bu tartışmaya katılan bir kullanıcı adını otomatik olarak tamamlamak için @ işaretini yazın.