Differences

This shows you the differences between two versions of the page.

Link to this comparison view

list_cost_centers [2014/06/23 23:17]
ybarajas
list_cost_centers [2014/06/23 23:19] (current)
ybarajas [List of Cost Centers]
Line 1: Line 1:
 +======List of Cost Centers======
  
 +
 +
 +==Resource URL==
 +
 +<code>
 +/moservices/rest/api/ipass/{COMPANY_ID}/mo/costcenter
 +</code>
 +
 +==HTTP GET==
 +Return a list of Cost Centers and other information related to the Cost Center.
 +
 +==GET Parameters==
 +
 +^ Parameter ^ Value ^  Description ^
 +|COMPANY_ID| Your companyId can be found in the Open Mobile Portal. | Mandatory|
 +|action|list|Mandatory|
 +|User-Agent|apiuser|Mandatory. This helps us route your API call appropriately.|
 +
 +=====Examples=====
 +
 +==cURL:==
 +
 +<code>
 +curl -k --request GET -b tmpCookies.txt -o networkclientusers.csv "https://openmobile.ipass.com/moservices/rest/api/ipass/987654/mo/costcenter?action=list&User-Agent=apiuser"
 +</code>
 +
 +==Java:==
 +
 +<code>
 +String reportURI = "/moservices/rest/api/ipass/" + companyId + "/mo/costcenter?action=list&User-Agent=apiuser";
 +HttpGet reportGet = new HttpGet(BASE_URL + reportURI);
 +
 +HttpResponse getResponse = httpClient.execute(reportGet);
 +
 +</code>
 +
 +----
 +
 +Go to: **[[:api_documentation|REST API Overview]] > [[:manage_cost_center|Manage Cost Center]]**
 

©2015 iPass Inc. All rights reserved. Terms of Use