cancel
Showing results for 
Search instead for 
Did you mean: 

magento2 web api - just need an example on how to connect to it

magento2 web api - just need an example on how to connect to it

Hi Forum,

 

I am new to this, so I hope someone can explain how to connect from a client.

 

I have made a demo website https:\\shop-amok.com, and want to make a program, that can communicate through the web api using oauth. 

 

I have tried many things, last 2 days, and I guess that I have had tried to get all the errors that is possible to get.

 

its a demo site, so I have no problems showing the keys and token in here, just need to get access to it.

 

I have set callback url and identity link URL to blank, because when I try to fill it out, I get problems with activating the integration.

 

I have assign all to API, so everything should be available.

 

Consumer key: 2ohtb2fihe29igbiuw6ovbuy8hy5dhnx

Consumer secret: vgsakuuypkbuw6xw1kxl2shgvmsp8sl9

Access Token: kiqvcjbnceycd52j639c7mexqhjdmpc6

Access Token secret: m2ge7idvaxwsw4rwoqmtj3f1ydjraddy

 

I start feeling a little bit stupid, so I hope a nice person in here can help me in the right direction.

 

 

 

Kind Regards

 

 

Peter Beyer

 

 

 

 

 

 

2 REPLIES 2

Re: magento2 web api - just need an example on how to connect to it

Hi Peter,

 

What are you trying to use to send requests to the API? I have an answer on stackoverflow that outlines how I'm sending authenticated requests via Python. Perhaps it will get you started?

 

Justin

Re: magento2 web api - just need an example on how to connect to it

Thanks I find out, I thought that I should have some kind of token back from magento, but it seems that I don't need to do anything like that. 

 

After understanding this, I got the access to the web api

 

thanks for your support

 

 

Peter