cancel
Showing results for 
Search instead for 
Did you mean: 

Custom web services

Custom web services

I'm dealing with some weird requirement of a cliente, basically I need to create some custom REST web services to allow the store manager to do basic actions that actually magento does but I need to have them available through web service, for example create a product or update a product inventory.

 

I need to publish some web services to allow the users to:

-Create products

-Get products created

-Update products inventory

-Get shipping calculation (I'm the consumer of this web service, the client publish me an URL to do this calculation)

 

I think I need to create a custom plugin to deal with this but I'm not sure how can I make this without molesting magento

 

Can somebody give me  a hand?

4 REPLIES

Re: Custom web services

Hi,

 

You ened to look at the Magento API Documentations there are should be methods for Create products, Update Inventory.

 

For shipping calculation you will probable need to make your own API method.

 

The API Documentation is here.

 

Thanks

Re: Custom web services

the Magent REST API doc is not clear at all, and seems more complicated than enough. When I run this sample code to list the products, it redirects to the user login page and ask for username and password, how do we avoid interacting with the web page but rather just pass in the username, password, consumer key and secret, then return the access token for further request?

 

http://www.magentocommerce.com/api/rest/introduction.html#RESTAPIIntroduction-Retrievethelistofprodu...

 

Re: Custom web services

http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html#OAuthAuthentication...

 

based on this doc, on the User Authorization step, it's required to redirect to the magento site to let user enter the username/password, this seems really silly way.. isn't Magento offering a way to accept the user/pass in the authorization call at all?

 

Someone did C# library with ability to wrap the Magento REST API call, it also parse the login web page to get authorization(loook at the Login method):

 

https://github.com/nickvane/Magento-RestApi/blob/master/Magento.RestApi/MagentoApi.cs

Tags (1)

Re: Custom web services

Hi all..
It is effective communications tools,that is related to innovative displays which tend to be help markets , advertising, product information and all other messages in smarter techniques. A website should not just draw attention. .Our customer focused team will improve your traffic flow and increase sales for your web-based operations.In a digital world, first impressions are vital and an outstanding web design is the key to success. Users enjoy visiting sites that are aesthetically appealing and easy to navigate. Let our team help your site make an outstanding first impression with speed and accessibility.Our agency will get your business noticed in the digital world by using design ingenuity for creating brand personality with a long-lasting impact. We provide various customizable design sets and focus on creating a website to fit your brand while engaging your visitors. Our team presents, revises and collaborates with you until we finalize the perfect design for your needs.
You can visit different marketing sites and read about them what all it includes regarding on-line marketing. Look at http://www.imarkdigitalsolutions.com/ and view their services,If like avail the services.