1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can you do JSON? I need a script.

Discussion in 'Hire a Freelancer' started by GreenGardenGuy, Jan 29, 2017.

  1. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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
     
  2. fastlinks

    fastlinks Power Member

    Joined:
    Feb 4, 2015
    Messages:
    616
    Likes Received:
    72
    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
     
  3. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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!
     
  4. fastlinks

    fastlinks Power Member

    Joined:
    Feb 4, 2015
    Messages:
    616
    Likes Received:
    72
    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.
     
  5. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    Yeah, I really need it to do its thing without my help. I thank you very much for replying though!
    Gary
     
  6. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    960
    Likes Received:
    216
    Home Page:
    I can help you out, add me on skype: workhardph
     
  7. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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.
     
  8. BlueZero

    BlueZero Power Member

    Joined:
    Jul 6, 2011
    Messages:
    506
    Likes Received:
    261
    Occupation:
    Webdeveloper, Project Manager
    Location:
    Byte in the Net
    Home Page:
    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.
     
  9. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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.
     
  10. BlueZero

    BlueZero Power Member

    Joined:
    Jul 6, 2011
    Messages:
    506
    Likes Received:
    261
    Occupation:
    Webdeveloper, Project Manager
    Location:
    Byte in the Net
    Home Page:
    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?
     
  11. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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!
     
  12. BlueZero

    BlueZero Power Member

    Joined:
    Jul 6, 2011
    Messages:
    506
    Likes Received:
    261
    Occupation:
    Webdeveloper, Project Manager
    Location:
    Byte in the Net
    Home Page:
    I am pretty busy, but if you dont find anyone, then i can help you.
     
    • Thanks Thanks x 1
  13. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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!
     
  14. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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
     
  15. krombes

    krombes Newbie

    Joined:
    Feb 23, 2017
    Messages:
    3
    Likes Received:
    0
    I'm looking for the same script. Can you please help me?
     
  16. krombes

    krombes Newbie

    Joined:
    Feb 23, 2017
    Messages:
    3
    Likes Received:
    0
    Anybody can help me?
     
  17. primadg

    primadg Jr. VIP Jr. VIP

    Joined:
    Dec 19, 2012
    Messages:
    121
    Likes Received:
    17
    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
     
  18. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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.
     
  19. krombes

    krombes Newbie

    Joined:
    Feb 23, 2017
    Messages:
    3
    Likes Received:
    0
    The Script are working? Can i get it please?
     
  20. GreenGardenGuy

    GreenGardenGuy Newbie

    Joined:
    May 13, 2012
    Messages:
    39
    Likes Received:
    9
    Gender:
    Male
    Location:
    Florida, USA
    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!