Valor Talk

Welcome to Valor Talk Sign in | Join | Help
 
 
 
Your Ad Here

VALOR API!!

  •  11-19-2006, 12:58 AM

    VALOR API!!

    So, I finally sat down and started putting together an API.  I have started simple and would like some feedback before I move forward.

     First things first.  I have made a key manager for you to add your url of the site that will use the api.  The manager will generate a string which will be your 'key' to use the api.  The api must be called from the site you register the key with. (It's late, I hope you're following this)

    The key manager is here:

     http://www.valorcorp.com/Dealer_Products/account/api/key_manager/default.asp (corrected link)

    Once you have your key, you can use the first script I have written which is a simple on hand script.  Paste this script in your webpage where you want the results to show.  There are three properties to set:

    • key
    • item
    • show_onhand

    [key] is to be replaced with the key generated with the link above
    [item] is Valor's 7 digit item number.
    [show_onhand] should be either a 1 or 0. 1 will show the quantity available.  0 will show "In Stock" or "Out of Stock".

    <script type="text/javascript" src=http://www.valorcorp.com/api/stock_status.asp?key=[key]&show_onhand=[show_onhand]&item=[item]></script>

     Of course, this is all being tested, so don't move it to your site yet.  If I can get enough feedback, I will make this the first version so you can add it to your site in time for the holiday rush.

     PLEASE, let me know what you think and what I should change/add etc.

     Thanks, I'm going to sleep


    Ben Newton
    Filed under:
View Complete Thread
Powered by Community Server, by Telligent Systems