Last active
June 5, 2019 10:46
-
-
Save piotrkowalskipl/4d2826caa67e45987777f1c0d46a127f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X GET \ | |
'https://demo.domain/Api/V8/module/Contact?page[number]=1&page[size]=20&sort=-date_modified' \ | |
-H 'Authorization: Bearer eyJ0eXA........................VbAg11BUTEwugUqek6fow' | |
{ | |
"meta": { | |
"total-pages": 1, | |
"records-on-this-page": 1 | |
}, | |
"data": [ | |
{ | |
"type": "Contact", | |
"id": "691565b7-b3d2-71fb-76a3-5cf79888c4ff", | |
"attributes": { | |
"name": "Contact 001", | |
"date_entered": "2019-06-05T10:22:00+02:00", | |
"date_modified": "2019-06-05T10:22:00+02:00", | |
"modified_user_id": "1", | |
"modified_by_name": "admin", | |
"created_by": "1", | |
"created_by_name": "admin", | |
"description": "", | |
"deleted": "0", | |
"created_by_link": "", | |
"modified_user_link": "", | |
"assigned_user_id": "1", | |
"assigned_user_name": "admin", | |
"assigned_user_link": "", | |
"SecurityGroups": "", | |
"salutation": "", | |
"first_name": "Contact", | |
"last_name": "001", | |
"full_name": "Contact 001", | |
"title": "", | |
"photo": "", | |
"department": "", | |
"do_not_call": false, | |
"phone_home": "", | |
"email": "", | |
"phone_mobile": "", | |
"phone_work": "", | |
"phone_other": "", | |
"phone_fax": "", | |
"email1": "", | |
"email2": "", | |
"invalid_email": "", | |
"email_opt_out": "", | |
"lawful_basis": "", | |
"date_reviewed": "", | |
"lawful_basis_source": "", | |
"primary_address_street": "", | |
"primary_address_street_2": "", | |
"primary_address_street_3": "", | |
"primary_address_city": "", | |
"primary_address_state": "", | |
"primary_address_postalcode": "", | |
"primary_address_country": "", | |
"alt_address_street": "", | |
"alt_address_street_2": "", | |
"alt_address_street_3": "", | |
"alt_address_city": "", | |
"alt_address_state": "", | |
"alt_address_postalcode": "", | |
"alt_address_country": "", | |
"assistant": "", | |
"assistant_phone": "", | |
"email_addresses_primary": "", | |
"email_addresses": "", | |
"email_addresses_non_primary": "", | |
"email_and_name1": "Contact 001 <>", | |
"lead_source": "", | |
"account_name": "", | |
"account_id": "", | |
"opportunity_role_fields": "", | |
"opportunity_role_id": "", | |
"opportunity_role": "", | |
"reports_to_id": "", | |
"report_to_name": "", | |
"birthdate": "", | |
"accounts": "", | |
"reports_to_link": "", | |
"opportunities": "", | |
"bugs": "", | |
"calls": "", | |
"cases": "", | |
"direct_reports": "", | |
"emails": "", | |
"documents": "", | |
"leads": "", | |
"meetings": "", | |
"notes": "", | |
"project": "", | |
"project_resource": "", | |
"am_projecttemplates_resources": "", | |
"am_projecttemplates_contacts_1": "", | |
"tasks": "", | |
"tasks_parent": "", | |
"notes_parent": "", | |
"user_sync": "", | |
"campaign_id": "", | |
"campaign_name": "", | |
"campaigns": "", | |
"campaign_contacts": "", | |
"c_accept_status_fields": "", | |
"m_accept_status_fields": "", | |
"accept_status_id": "", | |
"accept_status_name": "", | |
"prospect_lists": "", | |
"sync_contact": "", | |
"fp_events_contacts": "", | |
"aos_quotes": "", | |
"aos_invoices": "", | |
"aos_contracts": "", | |
"e_invite_status_fields": "", | |
"event_status_name": "", | |
"event_invite_id": "", | |
"e_accept_status_fields": "", | |
"event_accept_status": "", | |
"event_status_id": "", | |
"project_contacts_1": "", | |
"aop_case_updates": "", | |
"joomla_account_id": "", | |
"portal_account_disabled": false, | |
"joomla_account_access": "", | |
"portal_user_type": "Single" | |
}, | |
"relationships": { | |
"AM_ProjectTemplates": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/am_projecttemplates_contacts_1" | |
} | |
}, | |
"AOS_Contracts": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/aos_contracts" | |
} | |
}, | |
"AOS_Invoices": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/aos_invoices" | |
} | |
}, | |
"AOS_Quotes": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/aos_quotes" | |
} | |
}, | |
"CampaignLog": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/campaigns" | |
} | |
}, | |
"EmailAddress": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/email_addresses" | |
} | |
}, | |
"Opportunities": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/opportunities" | |
} | |
}, | |
"Project": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/project_contacts_1" | |
} | |
}, | |
"ProspectLists": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/prospect_lists" | |
} | |
}, | |
"SecurityGroups": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/SecurityGroups" | |
} | |
}, | |
"Users": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/created_by_link" | |
} | |
} | |
} | |
} | |
], | |
"links": { | |
"first": null, | |
"prev": null, | |
"next": null, | |
"last": null | |
} | |
} | |
curl -X GET \ | |
https://demo.domain/Api/V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff \ | |
-H 'Authorization: Bearer eyJ0eXA........................VbAg11BUTEwugUqek6fow' | |
{ | |
"data": { | |
"type": "Contact", | |
"id": "691565b7-b3d2-71fb-76a3-5cf79888c4ff", | |
"attributes": { | |
"name": "Contact 001", | |
"date_entered": "2019-06-05T10:22:00+02:00", | |
"date_modified": "2019-06-05T10:22:00+02:00", | |
"modified_user_id": "1", | |
"modified_by_name": "Donald Duck", | |
"created_by": "1", | |
"created_by_name": "Donald Duck", | |
"description": "", | |
"deleted": "0", | |
"created_by_link": "", | |
"modified_user_link": "", | |
"assigned_user_id": "1", | |
"assigned_user_name": "Donald Duck", | |
"assigned_user_link": "", | |
"SecurityGroups": "", | |
"salutation": "", | |
"first_name": "Contact", | |
"last_name": "001", | |
"full_name": "Contact 001", | |
"title": "", | |
"photo": "", | |
"department": "", | |
"do_not_call": "0", | |
"phone_home": "", | |
"email": "", | |
"phone_mobile": "", | |
"phone_work": "", | |
"phone_other": "", | |
"phone_fax": "", | |
"email1": "001@example.com", | |
"email2": "", | |
"invalid_email": "0", | |
"email_opt_out": "0", | |
"lawful_basis": "", | |
"date_reviewed": "", | |
"lawful_basis_source": "", | |
"primary_address_street": "", | |
"primary_address_street_2": "", | |
"primary_address_street_3": "", | |
"primary_address_city": "", | |
"primary_address_state": "", | |
"primary_address_postalcode": "", | |
"primary_address_country": "", | |
"alt_address_street": "", | |
"alt_address_street_2": "", | |
"alt_address_street_3": "", | |
"alt_address_city": "", | |
"alt_address_state": "", | |
"alt_address_postalcode": "", | |
"alt_address_country": "", | |
"assistant": "", | |
"assistant_phone": "", | |
"email_addresses_primary": "", | |
"email_addresses": "", | |
"email_addresses_non_primary": "", | |
"email_and_name1": "", | |
"lead_source": "", | |
"account_name": "", | |
"account_id": "", | |
"opportunity_role_fields": "", | |
"opportunity_role_id": "", | |
"opportunity_role": "", | |
"reports_to_id": "", | |
"report_to_name": "", | |
"birthdate": "", | |
"accounts": "", | |
"reports_to_link": {}, | |
"opportunities": "", | |
"bugs": "", | |
"calls": "", | |
"cases": "", | |
"direct_reports": "", | |
"emails": "", | |
"documents": "", | |
"leads": "", | |
"meetings": "", | |
"notes": "", | |
"project": "", | |
"project_resource": "", | |
"am_projecttemplates_resources": "", | |
"am_projecttemplates_contacts_1": "", | |
"tasks": "", | |
"tasks_parent": "", | |
"notes_parent": "", | |
"user_sync": {}, | |
"campaign_id": "", | |
"campaign_name": "", | |
"campaigns": "", | |
"campaign_contacts": {}, | |
"c_accept_status_fields": "", | |
"m_accept_status_fields": "", | |
"accept_status_id": "", | |
"accept_status_name": "", | |
"prospect_lists": "", | |
"sync_contact": "", | |
"fp_events_contacts": "", | |
"aos_quotes": "", | |
"aos_invoices": "", | |
"aos_contracts": "", | |
"e_invite_status_fields": "", | |
"event_status_name": "", | |
"event_invite_id": "", | |
"e_accept_status_fields": "", | |
"event_accept_status": "", | |
"event_status_id": "", | |
"project_contacts_1": "", | |
"aop_case_updates": "", | |
"joomla_account_id": "", | |
"portal_account_disabled": false, | |
"joomla_account_access": "", | |
"portal_user_type": "Single" | |
}, | |
"relationships": { | |
"AM_ProjectTemplates": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/am_projecttemplates_contacts_1" | |
} | |
}, | |
"AOS_Contracts": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/aos_contracts" | |
} | |
}, | |
"AOS_Invoices": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/aos_invoices" | |
} | |
}, | |
"AOS_Quotes": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/aos_quotes" | |
} | |
}, | |
"CampaignLog": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/campaigns" | |
} | |
}, | |
"EmailAddress": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/email_addresses" | |
} | |
}, | |
"Opportunities": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/opportunities" | |
} | |
}, | |
"Project": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/project_contacts_1" | |
} | |
}, | |
"ProspectLists": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/prospect_lists" | |
} | |
}, | |
"SecurityGroups": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/SecurityGroups" | |
} | |
}, | |
"Users": { | |
"links": { | |
"related": "V8/module/Contact/691565b7-b3d2-71fb-76a3-5cf79888c4ff/relationships/created_by_link" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment