Skip to content

Latest commit

 

History

History
100 lines (76 loc) · 1.67 KB

getOccupations.md

File metadata and controls

100 lines (76 loc) · 1.67 KB

getOccupations

Returns an array of structured occupation data in JSON format.
  • Version History:

    TASS v49.1 - Method Added

  • Version:

    1

  • Method:

    GET | POST

  • Params:

    Required:

    codeonly [boolean] - Return Code only. Must be 'true' or 'false'.

    Optional:

    none

    Conditional:

    none

  • Success Response:

    "occupations": [
    	{
    		"code": "ACC",
    		"desc": "Accountant"
    	},
    	{
    		"code": "EM2",
    		"desc": "Ambulance / Paramedic"
    	},
    	{
    		"code": "BAR",
    		"desc": "Barrister"
    	},
    	{
    		"code": "BUI",
    		"desc": "Builder"
    	},
    	{
    		"code": "BUT",
    		"desc": "Butcher"
    	},
    	{
    		"code": "DNS",
    		"desc": "Dental Nurse"
    	},
    	{
    		"code": "DEN",
    		"desc": "Dentist"
    	}
    ]
  • Error Response:

    codeonly not supplied

    "__msg": "'codeonly' IS REQUIRED"

    codeonly invalid

    "__msg": "'codeonly' MUST BE 'true' or 'false'"
  • Sample Parameters:

     codeonly=false
  • Sample GET: (With URL Encoded token)

     http://api.tasscloud.com.au/tassweb/api/?appcode=DEMOOE&v=1&method=GetOccupations&token=3w6XHPP1j163aHf%2FHRAnLA%3D%3D&company=10
  • Sample POST:

     <form id="postForm" name="postForm" method="POST" action="http://api.tasscloud.com.au/tassweb/api/">
     	<input type="hidden" name="method" value="GetOccupations" />
     	<input type="hidden" name="appcode" value="DEMOOE" />
     	<input type="hidden" name="company" value="10" />
     	<input type="hidden" name="v" value="1" />
     	<textarea name="token">3w6XHPP1j163aHf\/HRAnLA==</textarea>
     </form>