Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This project is no longer maintained, see README!
tree: fb20a83829

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
INSTALL.md
README.md
gsx.php

README.md

GSX Web Services API

A PHP Class by Dan "theblahman" Barrett

This class is intended for AASPs only

Web: http://theblahman.net Email: gsx@theblahman.net

Content Outputs:

  • PHP
  • JSON

REQUIRES

  • PHP 5.3 and greater
  • SOAP module for PHP
  • JSON module for PHP

FUTURE PLANS

I hope to provide much nicer output than what is currently present.

Current:

array(1) {
  ["PartsLookupResponse"]=>
  array(3) {
    ["operationId"]=>
    string(23) "miscOpId"
    ["parts"]=>
    array(9) {
      ["partDescription"]=>
      string(3) "Fan"
      ["eeeCode"]=>
      string(0) ""
      ["exchangePrice"]=>
      string(1) "0"
      ["laborTier"]=>
      string(4) "LAB1"
      ["partNumber"]=>
      string(8) "922-9643"
      ["partType"]=>
      string(11) "Replacement"
      ["stockPrice"]=>
      string(4) "20.8"
      ["componentCode"]=>
      string(1) "1"
      ["isSerialized"]=>
      string(1) "N"
    }
    ["communicationMessage"]=>
    string(0) ""
  }
}

I'd ideally like to provide cleaner output along with HTTP style codes; in fact, codes will copy current HTTP/1.1 codes.

Planned:

array(1){
    ["ResponseArray"]=>
    array(4) {
        ["type"]=>
        string(6) "output"
        ["code"]=>
        string(3) "200"
        ["responseData"]=>
        array(9) {
            ["partDescription"]=>
            string(3) "Fan"
            ["eeeCode"]=>
            string(0) ""
            ["exchangePrice"]=>
            string(1) "0"
            ["laborTier"]=>
            string(4) "LAB1"
            ["partNumber"]=>
            string(8) "922-9643"
            ["partType"]=>
            string(11) "Replacement"
            ["stockPrice"]=>
            string(4) "20.8"
            ["componentCode"]=>
            string(1) "1"
            ["isSerialized"]=>
            string(1) "N"
        }
        ["urgentMessage"]=>
        string(0) ""
    }
}

Coming soon:

  • Clean display of content along with appropriate return codes
  • .plist output so you don't have to
  • hopefully clean error output

Sometime in the future…

  • REST-ish module
Something went wrong with that request. Please try again.