Results 1 to 3 of 3

Thread: API PHP Client example

  1. #1
    Join Date
    Jan 2012
    Posts
    763

    Default API PHP Client example

    I've just downloaded the API Client (PHP) from the API User Guide page, and have filled in the domain, username and API key.

    But when I run it, just to see what it does, it displays this:

    PHP Code:
    Array(
        [
    Status] => HTTP/1.1 404 Not Found
        
    [Date] => Sat05 Aug 2017 10:02:54 GMT
        
    [Server] => Apache
        
    [X-Frame-Options] => SAMEORIGIN
        
    [X-Requests-Limit] => 1000
        
    [X-Requests-Remaining] => 999
        
    [Vary] => Accept-Encoding,User-Agent
        
    [Content-Encoding] => gzip
        
    [Content-Length] => 86
        
    [Content-Type] => application/json
    )
    Array
    (
        [
    error] => Array
            (
                [
    code] => 404
                
    [phrase] => Not Found
                
    [message] => Resource not found
            
    )
     ) 
    So it looks like something isn't quite configured right, and it can't find what it's looking for. But on the other hand, it's not really clear what is supposed​ to happen- is it actually supposed to do anything by default, or is it just a list of useful functions and it needs to be edited in order to work...?

  2. #2
    Join Date
    Jan 2012
    Posts
    763

    Default

    ah, ok, never mind. It looks like it was trying to retrieve order information, and as this was a brand new blank website there were no orders to find... added a test order and now it works.

  3. #3
    Join Date
    Jun 2012
    Location
    South West England
    Posts
    175

    Default

    Yes, a 404 response can indicate that no orders are available of that type not that you got the call syntactically incorrect. I have had the same a 404 is not as bad as it seems.
    Regards
    Rob

Similar Threads

  1. Excellent Example of One Page Check Out
    By Ashley in forum Bluepark Technical Discussion
    Replies: 12
    Last Post: 13-02-2013, 12:48
  2. Google Base Example Export
    By amberpumpkin in forum Bluepark Technical Discussion
    Replies: 5
    Last Post: 07-01-2012, 20:05
  3. PHP 4 or 5
    By twa96 in forum Bluepark Technical Discussion
    Replies: 1
    Last Post: 16-02-2011, 12:38
  4. E-mail client
    By the funky fairy in forum General Discussion: Any Other Business
    Replies: 4
    Last Post: 04-07-2009, 17:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us

Bluepark's ecommerce software is developed, hosted and supported exclusively by ourselves, here in the UK, and has been so since the company was initially formed in 2004. Your brand new online shop will be hosted securely on our fast and reliable server network, using a domain name of your choice, providing the ability to build and maintain your ecommerce website, and manage your orders, from any location via your own secure online Administration Console.

A Bluepark ecommerce site is the perfect tool for selling online, whether you're selling physical products, digital downloads or services. You'll be in good company with over 1,000 UK customers who also form a friendly and helpful online community, further strengthening our highly acclaimed support network.

Find us on...