Can you do JSON? I need a script.

Status
Not open for further replies.
Joined
May 13, 2012
Messages
42
Reaction score
12
Basically I would like to access the API at Banggood.com and just get updated prices and stock quantities and save them to a database. I do HTML and a little Javascript, I should have no trouble using the data after it is in the database. Oh, if it makes any difference, I'm dropshipping.
I just dont want to sell at the wrong price or sell something not in stock any more.
Eventually I would like to make a full featured Wordpress Plugin that could be sold, so if you do that also I would like to discuss this with you.
I saved all of the API documentation in a Word Document, so you shouldnt even have to go to the website to look it up.
ANY help would really be appreciated.
Gary
 
Can do it with ubot, then write the data on a live mysql database or directly update your website.

It will be a desktop software, faster development and easier to debug

Skype: ipowerhost2
 
Can do it with ubot, then write the data on a live mysql database or directly update your website.

It will be a desktop software, faster development and easier to debug

Skype: ipowerhost2
I need it to update the database about every 2 days or so then the website code will get its data on page load from the database. It would have to be a script uploaded to my server and timed with a chron I believe. Can you do that?
BTW, I dont use Skype. Yet.
Thanks!
 
I need it to update the database about every 2 days or so then the website code will get its data on page load from the database. It would have to be a script uploaded to my server and timed with a chron I believe. Can you do that?
BTW, I dont use Skype. Yet.
Thanks!

i dont make web script, only desktop software.

in term of functionality, it is the same, desktop software need to run it on your pc (fast to develop so you save cost)
you only need to run the software every 2 days, or i can code it to run on windows start up. so it update the database in background.

if you really need a web script, then i can recommend a php guy for you.
 
i dont make web script, only desktop software.

in term of functionality, it is the same, desktop software need to run it on your pc (fast to develop so you save cost)
you only need to run the software every 2 days, or i can code it to run on windows start up. so it update the database in background.

if you really need a web script, then i can recommend a php guy for you.
Yeah, I really need it to do its thing without my help. I thank you very much for replying though!
Gary
 
I can help you out, add me on skype: workhardph
I dont do Skype.
Have you read through and understand what I want to do?
We can talk by FB, email, or whatever. Thanks!
This computer is ready to be replaced, Skype is just too much for it to handle.
 
http://api.banggood.com/index.php?com=document&article_id=2

Looks pretty easy. What exactly is you want to help with?
You create the link which will contain access token and product id.
Make a request to the link.
in PHP you do $aMyProductArray = json_decode( $result, true );
And there you have an array with the product infomration, then you can do whatever you want to do with it.
 
http://api.banggood.com/index.php?com=document&article_id=2

Looks pretty easy. What exactly is you want to help with?
You create the link which will contain access token and product id.
Make a request to the link.
in PHP you do $aMyProductArray = json_decode( $result, true );
And there you have an array with the product infomration, then you can do whatever you want to do with it.
I started doing HTML before there was a publicly available internet. I also learned a little Javascript. I can Edit PHP, but I cant write it.
I understand that it's easy to do, but it is just slightly above my abilities.
That's why I'm asking for help and willing to pay a bit for that help.
 
Code:
<?php
$accesstoken = "tests31df51sa35d4fW4E68F4Atest";
$productid = "27827";
$currency = "USD";
$lang = "en";
$sURL = 'https://api.banggood.com/product/getProductInfo?access_token='.$accesstoken.'&product_id='.$productid.'&currency='.$currency.'&lang='.$lang;
$sRes = file_get_contents( $sURL );
$aProduct = json_decode( $sRes );
?>

Does this help you?
 
Code:
<?php
$accesstoken = "tests31df51sa35d4fW4E68F4Atest";
$productid = "27827";
$currency = "USD";
$lang = "en";
$sURL = 'https://api.banggood.com/product/getProductInfo?access_token='.$accesstoken.'&product_id='.$productid.'&currency='.$currency.'&lang='.$lang;
$sRes = file_get_contents( $sURL );
$aProduct = json_decode( $sRes );
?>

Does this help you?
This is a part of what I need. I'm trying to find someone willing to write the whole script so I dont screw it up. I seriously appreciate your efforts in this! If you want to do the whole project we can work it out, but I really need someone with more experience than I have to just go ahead and do it so I dont need to try to piece it together.
Thank you!
 
I am pretty busy, but if you dont find anyone, then i can help you.
OK. Thank you!
Got quite a few responses so far. Everyone that replied seems to know what they are doing.
Great bunch of people here at BHW!
 
Script request fulfilled! Thank You to everyone who replied.
This morning I got a message from someone I didnt know and had never talked to. Attached to this message was the full script I had asked for.
He said "If you like this send me ten bucks.". I sent him fifteen, he did a really great job. Just what I wanted!
BHW has some really great people!
I love this place!
Gary
 
Basically I would like to access the API at Banggood.com and just get updated prices and stock quantities and save them to a database. I do HTML and a little Javascript, I should have no trouble using the data after it is in the database. Oh, if it makes any difference, I'm dropshipping.
I just dont want to sell at the wrong price or sell something not in stock any more.
Eventually I would like to make a full featured Wordpress Plugin that could be sold, so if you do that also I would like to discuss this with you.
I saved all of the API documentation in a Word Document, so you shouldnt even have to go to the website to look it up.
ANY help would really be appreciated.
Gary

Hi,
i have a team that created my SERP.farm plugin. If you are interested we can create a custom WordPress plugin for you.

My best regards,
Valera Vlasyuk
 
I have been in the hospital for a while.
After I get my scripts in order I will post everything I have.
Could take me a little while.
 
No, I kinda gave up on it. I'm having trouble getting the script to work. I am in a class right now trying to learn scripting in various scripting languages so maybe I'll come back to it.
Thanks for the comment!
 
Status
Not open for further replies.
This thread has been auto closed due to the forum's thread age policy. Read more.
Back
Top