Page 1 of 1
Search found 8 matches
Re: Need API support
Good Day Sorry for asking a question on top of another. Did i understand correct that i will never be able to use postman to test api as it is only for internal use? I am also new to opencart, but would like to use python to load products from supplier price list. I saw this: http://docs.opencart.co...
Jump to post- Thu Mar 07, 2019 5:27 am
- Replies 7
- Views 1134
Re: Python Login via Api
Good Day
Api Documentation: http://docs.opencart.com/en-gb/system/users/api/
Show how it should be done, but still i cant get api to work.
I desperately want to use opencart, but need api to work.
Anyone that could help in this regard?
Thank You
Albertus Geyser
- Sun Dec 30, 2018 7:19 pm
- Replies 10
- Views 3957
Re: Python Login via Api
Good Day I managed to get Open Cart sessionId (api_token), but still struggle to login: import requests username = 'Default' key = '4tU3dt1zhgpX7QGt8hKIDzDhbRFeMmUFkijgi6nymABWT8HX6lw0zOM2aTfAfx3lPpbhDaTZsdv47PXNvb7g8CsK7lvs3G1Ci4GnMEj777ysWvZwdKNlx6pZ70cV0s4qZAtqBgsr5QgxQkkNFnngoNHpEtwN0lZJTGGLvs7k...
Jump to post- Mon Nov 26, 2018 5:37 am
- Replies 10
- Views 3957
Re: Python Login via Api
Good Day
Thank you for your support. I "unfortunately" have to use python as software i want to integrate with is written in python.
Will see if i will manage to get it going otherwise have to look for alternative ways of doing this.
Thank You
Albertus Geyser
- Mon Nov 26, 2018 3:10 am
- Replies 10
- Views 3957
Re: Python Login via Api
Good Day
Thank you for reply.
Is there someone with python code that could help me please?
Thank You
Albertus Geyser
- Sun Nov 25, 2018 11:04 pm
- Replies 10
- Views 3957
Re: Python Login via Api
Good Day
I checked more and found this:
viewtopic.php?t=204392
Still do not understand why and how should you submit api_token if that is what you should get when submitting login?
Hope someone could guide me to correct this?
Thank You
Albertus Geyser
- Sun Nov 25, 2018 2:03 pm
- Replies 10
- Views 3957
Re: Python Login via Api
Good Day
Thank you for reply, but is this not part that should return api_token?
I found this code at the following link:
http://docs.opencart.com/en-gb/system/users/api/
Hope someone could help.
Thank You
Albertus Geyser
- Sun Nov 25, 2018 5:51 am
- Replies 10
- Views 3957
Python Login via Api
Good Day I tried to use login code with python via api and it gives me following error: Notice: Undefined index: api_token in /var/www/html/opencart/catalog/controller/startup/session.php on line 8Notice: Undefined index: username in /var/www/html/opencart/catalog/controller/api/login.php on line 11...
Jump to post- Sat Nov 24, 2018 3:19 pm
- Replies 10
- Views 3957
Search found 8 matches