Edit Your Comment
Begin in API
Ahli sejak Oct 24, 2022
3 hantaran
Apr 30, 2023 at 05:08
Ahli sejak Oct 24, 2022
3 hantaran
Hello
I tried to use windows command line to run api:
curl https://www.myfxbook.com/api/[email protected]&password=letsboogie
But I have this error:
<?xml version='1.0' encoding='UTF-8'?>
<response error='true' message='Required fields missing.'>
<session></session>
</response>
What is the correct comman to run in windows environment
I tried to use windows command line to run api:
curl https://www.myfxbook.com/api/[email protected]&password=letsboogie
But I have this error:
<?xml version='1.0' encoding='UTF-8'?>
<response error='true' message='Required fields missing.'>
<session></session>
</response>
What is the correct comman to run in windows environment
Ahli sejak Oct 15, 2022
3 hantaran
Apr 30, 2023 at 14:20
Ahli sejak Oct 15, 2022
3 hantaran
I am using python on Windows. There is a gitbub repo where all the API calls are already defined in a class, and it is working for me.
1) Copy the myfxbook.py into the same folder where you will create a second python script.
2) Create a script like: login.py, and paste the following code into it. Set your own email & password.
import myfxbook
fx = myfxbook.myfxbook('your own loging email for myfxbook.com', 'your own password')
print('Login: ',fx.login())
print('Logout: ',fx.logout())
3) Run the login.py after making sure you have python installed on windows:
python login.py
output will be something like this:
D:\myFxbookCode> python login.py
Login: {'error': False, 'message': '', 'session': '5nfhOctg1UZOtGl52711'}
Logout: {'error': False, 'message': 'Logged out.'}
This shows it was able to login without an error, was given a session ID, and again logged out without any error.
1) Copy the myfxbook.py into the same folder where you will create a second python script.
2) Create a script like: login.py, and paste the following code into it. Set your own email & password.
import myfxbook
fx = myfxbook.myfxbook('your own loging email for myfxbook.com', 'your own password')
print('Login: ',fx.login())
print('Logout: ',fx.logout())
3) Run the login.py after making sure you have python installed on windows:
python login.py
output will be something like this:
D:\myFxbookCode> python login.py
Login: {'error': False, 'message': '', 'session': '5nfhOctg1UZOtGl52711'}
Logout: {'error': False, 'message': 'Logged out.'}
This shows it was able to login without an error, was given a session ID, and again logged out without any error.
Ahli sejak Oct 15, 2022
3 hantaran
Apr 30, 2023 at 14:21
Ahli sejak Oct 15, 2022
3 hantaran
*Penggunaan komersil dan spam tidak akan diterima, dan boleh mengakibatkan penamatan akaun.
Petua: Menyiarkan url gambar/youtube akan menyisipkannya secara automatik dalam siaran hantaran anda!
Tip: Taipkan tanda @ untuk melengkapkan nama pengguna yang menyertai perbincangan ini secara automatik.