- घर
- कम्युनिटी
- प्रोग्रामिंग
- 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
6 पोस्टों
Feb 22, 2018 at 22:11
तबसे मेंबर है Sep 25, 2012
6 पोस्टों
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
1097 पोस्टों
Jul 16, 2018 at 00:49
तबसे मेंबर है Jan 05, 2016
1097 पोस्टों

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
6 पोस्टों
Jan 26, 2021 at 12:13
तबसे मेंबर है Jan 19, 2021
7 पोस्टों
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
9 पोस्टों

*व्यवसायिक इस्तेमाल और स्पैम को ब्रदाश नहीं किया जाएगा, और इसका परिणाम खाता को बन्द करना भी हो सकता है.
टिप: किसी चित्र या यूट्यूब या URL को पोस्ट करने से वे अपने आप आपके पोस्ट में आजाएगा!
टिप: @ चिन्ह को टाइप करें उपभोगता के नाम को अपने आप करने के लिए जो इस चर्चा में भाग ले रहा है.