GET Exchange Global Contact
From Hostway API Documentation
(Difference between revisions)
Mike.robski (Talk | contribs) |
Mike.robski (Talk | contribs) m (1 revision: Release 95) |
Latest revision as of 23:59, 1 July 2014
Retrieve an Exchange Global contact by domain name and global contact id
GET {server_name}/accounts/{account_number}/exchange/{domain_name}/globalContacts/{global_contact_id}
[edit] Parameters
- account_number - string
- The account number that the Exchange resource belongs to
- domain_name - string
- The domain name that is associated with the Exchange resource
- global_contact_id - string
- The global contact id
[edit] Expected Response Codes
- 200
- Success
- 404
- Non-existent resource
- 405
- Unsupported method
- 502
- Internal server error
- 304
- Resource has been cached and not modified
[edit] Examples
GET {server_name}/accounts/someaccount300021/exchange/ng-test-hwus-120120b.com/globalContacts/00000136a13b95a2f4f587fd000ae6fa2cb8a7d8
- Request Headers:
Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded username & password string
- Response: OK (200):
{ "target": "abcdef@ghijklm.com", "name": { "name": "John Jello", "company": "My Company", "department": "Sales", "title": "President" }, "address": { "address": "100 Main St.", "city": "Chicago", "state": "IL", "zip": "60001", "country": "US" }, "phones": { "homePhone": "87238473", "businessPhone": "555-555-5501", "fax": "555-555-5503", "mobile": "555-555-5504" }, "notes": "Notes in here", "links": [ { "href": "http://{server_name}/accounts/someaccount300021/exchange/ng-test-hwus-120120b.com/globalContacts/00000136a13b95a2f4f587fd000ae6fa2cb8a7d8/", "rel": "self" } ] }
GET {server_name}/accounts/someaccount300021/exchange/ng-test-hwus-120120b.com/globalContacts/{non_existent_contact_id}
- Response: Item Not Found (404):
404 Not Found The resource could not be found.
GET {server_name}/accounts/someaccount300021/exchange/ng-test-hwus-120120b.com/globalContacts/00000136a13b95a2f4f587fd000ae6fa2cb8a7d8
- Request Headers:
Content-Type:application/json Charset=UTF-8 Authorization:Base64-encoded username & password string If-Modified-Since : Wed, 11 Apr 2012 19:43:31 GMT
- Response: Not Modified (304)