heldenbrau Posted August 31, 2013 Share Posted August 31, 2013 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? Quote Link to comment https://forums.phpfreaks.com/topic/281722-is-this-possible/ Share on other sites More sharing options...
.josh Posted August 31, 2013 Share Posted August 31, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/281722-is-this-possible/#findComment-1447555 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.