- Início
- Comunidade
- Programação
- attempting to access account thru JSON API - getting error: ...
Edit Your Comment
attempting to access account thru JSON API - getting error: session required
Membro Desde Sep 25, 2012
6 posts
Feb 22, 2018 at 22:11
Membro Desde Sep 25, 2012
6 posts
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
Membro Desde Jan 05, 2016
1097 posts
Jul 16, 2018 at 00:49
Membro Desde Jan 05, 2016
1097 posts
![](https://www.myfxbook.com/files/Professional4X/session.jpg)
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.
Membro Desde Sep 25, 2012
6 posts
Jan 26, 2021 at 12:13
Membro Desde Jan 19, 2021
7 posts
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)
Membro Desde Dec 16, 2020
9 posts
![](/statistics/utv.jpg?id=1601486&r=0.6364900274271656)
*Uso comercial e spam não serão tolerados, podendo resultar no encerramento da conta.
Dica: Postar uma imagem/URL do YouTube irá incorporá-la automaticamente no seu post!
Dica: Insira o sinal @ para preencher automaticamente um nome de utilizador que participe nesta discussão.