Page 1 of 1
How to use Opencart API using Localhost
Posted: Fri Aug 06, 2021 5:26 pm
by shilpa_monde
Dear Folks,
I am test Opencart API -
http://docs.opencart.com/en-gb/system/users/api/. I want to test this on localhost in order to check whether it fits in my requirement or not. However, i am getting below response when I am trying to access API using Postmen. Can you please suggest the exact steps or guidance on this
<b>Notice</b>: Undefined index: api_id in <b>C:\xampp\htdocs\opencart\upload\catalog\controller\api\login.php</b> on line <b>21</b>{
"error": {
"ip": "Warning: Your IP ::1 is not allowed to access this API!",
"key": "Warning: Incorrect API Key!"
}
}
When I am commenting my Login page code where it is checking IP. it is working fine and generating token but it is not creating session in System-> Users-> API->Edit API->Session
Please suggest!
Re: How to use Opencart API using Localhost
Posted: Fri Aug 06, 2021 5:37 pm
by paulfeakins
Is this a Commercial Support request?
Re: How to use Opencart API using Localhost
Posted: Fri Aug 06, 2021 6:13 pm
by thekrotek
paulfeakins wrote: ↑Fri Aug 06, 2021 5:37 pm
Is this a Commercial Support request?
This is "I post my stuff whenever I want" request.
Re: How to use Opencart API using Localhost
Posted: Fri Aug 06, 2021 6:16 pm
by pedro1993
Hi Shilpa.
I had a similar issue on one of my OpenCart projects.
I’d be happy to help. Check you PM and send me an email I’ll be glad to assist.
Peter
shilpa_monde wrote: ↑Fri Aug 06, 2021 5:26 pm
Dear Folks,
I am test Opencart API -
http://docs.opencart.com/en-gb/system/users/api/. I want to test this on localhost in order to check whether it fits in my requirement or not. However, i am getting below response when I am trying to access API using Postmen. Can you please suggest the exact steps or guidance on this
<b>Notice</b>: Undefined index: api_id in <b>C:\xampp\htdocs\opencart\upload\catalog\controller\api\login.php</b> on line <b>21</b>{
"error": {
"ip": "Warning: Your IP ::1 is not allowed to access this API!",
"key": "Warning: Incorrect API Key!"
}
}
When I am commenting my Login page code where it is checking IP. it is working fine and generating token but it is not creating session in System-> Users-> API->Edit API->Session
Please suggest!
Re: How to use Opencart API using Localhost
Posted: Fri Aug 06, 2021 7:09 pm
by Garry_j
Hello,
I would be glad to assist you.
To discuss further in detail kindly reach me at
garry@cisinlabs.com or Skype me: cis.garry
Looking forward for your response.
Thanks
Garry
Re: How to use Opencart API using Localhost
Posted: Fri Aug 06, 2021 8:21 pm
by Trish Cis
Hi
Greetings!
I have gone thru your post & I would be happy to assist you.
I need some information to share my understanding with you. Rates are very competitive so it won’t be any issue for you
Please add me on Skype so we can discuss further.
Warm Regards,
Trish
Re: How to use Opencart API using Localhost
Posted: Mon Aug 09, 2021 5:48 pm
by paulfeakins
thekrotek wrote: ↑Fri Aug 06, 2021 6:13 pm
paulfeakins wrote: ↑Fri Aug 06, 2021 5:37 pm
Is this a Commercial Support request?
This is "I post my stuff whenever I want" request.

Re: How to use Opencart API using Localhost
Posted: Mon Aug 09, 2021 11:01 pm
by straightlight
Wherever request. At least, the topic has been moved.