Jump to content

Is this possible


heldenbrau

Recommended Posts

I have 3 sales channels, ebay, Amazon and romancart.  I want to use their API's to manage stock levels and started to write the program, but now I have found out that romancart doesn't have API access.  I haven't ever used API's before so it is a totally new thing for me to learn. 

 

What I want to know is, is it possible to update the stock in romancart anyway, like login to the website find the stock and change it with a PHP program, or any kind of computer program?

Link to comment
Share on other sites

it depends on how they present the data. You may be able to get away with using cURL to login and retrieve a page listing the data you want, and then use regex (ref.pcre) or DOM to pull the data from the page content. But usually people don't like others scraping their content so they may do something like use javascript to load content separately so that that it won't render the content if you try to use those functions. You can attempt to request the content url directly and maybe that will work, but you may have to fake or get around a token system or something. Or they could be rendering the data through flash, in which case you're kinda SoL. Not impossible but usually more trouble than its worth to setup.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.