Post by ideep13 » Tue Jan 19, 2021 8:45 pm

Hi,

I am in the middle of setting up the accounting service that will be connected with my stores, so the the program wants me to install this extension https://opencart-api.com/product/rest-admin-api/ for Opencart. Is there any similar extension that is similar to this and cheaper? Or is this the only extension that exists that will work for API integration?

In wordpress it is easy to install this program through webhooks and api.

Your help is much appreciated.

User avatar
Active Member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by straightlight » Tue Jan 19, 2021 9:10 pm

While the OC version has not been posted as well as the 'program's name', regarding an extension's expanse, it cannot be cheaper than this one: https://github.com/straightlight/openca ... upload/api .

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ideep13 » Tue Jan 19, 2021 9:44 pm

One OC version is 3.0.3.6. and the other one is 2.3.0.2 (but will be upgrading in a couple of weeks)
The program is https://e-racuni.com/

So this above what you suggested will be ok?

this is your extension I see :)

https://e-racuni.com/WikiDoc/WikiPage?a ... ronization

User avatar
Active Member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by straightlight » Tue Jan 19, 2021 10:00 pm

ideep13 wrote:
Tue Jan 19, 2021 9:44 pm
One OC version is 3.0.3.6. and the other one is 2.3.0.2 (but will be upgrading in a couple of weeks)
The program is https://e-racuni.com/

So this above what you suggested will be ok?

this is your extension I see :)

https://e-racuni.com/WikiDoc/WikiPage?a ... ronization
They already use an API: https://eurofaktura.cz/HelpCZ/WikiPage? ... lang=Czech . You could link it easily with my extension. However, take note that e-racuni.com ain't seem to be whitelisted. Anti-virus comes up when loading their API website.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ideep13 » Tue Jan 19, 2021 10:40 pm

Before I proceed and make some stupid move (again :laugh: ) need to ask you a few more questions..

So this api folder goes everything into admin folder right?
I can't find instructions or download link so I downloaded everything from github from you (under code button).. Is this both good for both versions right?

User avatar
Active Member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by straightlight » Tue Jan 19, 2021 10:49 pm

ideep13 wrote:
Tue Jan 19, 2021 10:40 pm
Before I proceed and make some stupid move (again :laugh: ) need to ask you a few more questions..

So this api folder goes everything into admin folder right?
I can't find instructions or download link so I downloaded everything from github from you (under code button).. Is this both good for both versions right?
It's good for the catalog-end side of Opencart but the database is accessible everywhere on the platform. Once downloaded, just use the API folder and link it with your project.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ideep13 » Tue Jan 19, 2021 10:57 pm

I screwed up something.. I am getting You are not authorized to view this page! Can you please help me privately to fix this?

User avatar
Active Member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by straightlight » Tue Jan 19, 2021 10:59 pm

ideep13 wrote:
Tue Jan 19, 2021 10:57 pm
I screwed up something.. I am getting You are not authorized to view this page! Can you please help me privately to fix this?
You need to build an API login with your project. That is why you're seeing this message. As an e.g, you could use the one from the catalog/controller/api/login.php from the core.

An e.g with GuzzleHttp: viewtopic.php?f=202&t=220903#p805005 .

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Tue Jan 19, 2021 11:02 pm

The common/login controller can also be used from my API.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ideep13 » Tue Jan 19, 2021 11:03 pm

straightlight wrote:
Tue Jan 19, 2021 10:59 pm
ideep13 wrote:
Tue Jan 19, 2021 10:57 pm
I screwed up something.. I am getting You are not authorized to view this page! Can you please help me privately to fix this?
You need to build an API login with your project. That is why you're seeing this message. As an e.g, you could use the one from the catalog/controller/api/login.php from the core.

An e.g with GuzzleHttp: viewtopic.php?f=202&t=220903#p805005 .
I overwritten files now.. I don't know how to do that. can you please help me back to previous state?

User avatar
Active Member

Posts

Joined
Mon Jun 18, 2012 2:47 am

Post by straightlight » Tue Jan 19, 2021 11:07 pm

ideep13 wrote:
Tue Jan 19, 2021 11:03 pm
straightlight wrote:
Tue Jan 19, 2021 10:59 pm
ideep13 wrote:
Tue Jan 19, 2021 10:57 pm
I screwed up something.. I am getting You are not authorized to view this page! Can you please help me privately to fix this?
You need to build an API login with your project. That is why you're seeing this message. As an e.g, you could use the one from the catalog/controller/api/login.php from the core.

An e.g with GuzzleHttp: viewtopic.php?f=202&t=220903#p805005 .
I overwritten files now.. I don't know how to do that. can you please help me back to previous state?
What do you mean overwritten files? Overwritten files to your whole store?

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ideep13 » Tue Jan 19, 2021 11:16 pm

straightlight wrote:
Tue Jan 19, 2021 11:07 pm
ideep13 wrote:
Tue Jan 19, 2021 11:03 pm
straightlight wrote:
Tue Jan 19, 2021 10:59 pm


You need to build an API login with your project. That is why you're seeing this message. As an e.g, you could use the one from the catalog/controller/api/login.php from the core.

An e.g with GuzzleHttp: viewtopic.php?f=202&t=220903#p805005 .
I overwritten files now.. I don't know how to do that. can you please help me back to previous state?
What do you mean overwritten files? Overwritten files to your whole store?
you said I need to upload the files to catalog.. so I uploaded

index.php
api_startu