diff --git a/README.md b/README.md index 7f0350e3a..94d41ebf4 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ $hubspot->crm()->contacts()->basicApi()->archive($contactId); #### Get custom objects page ```php -$hubspot->crm()->objects()->basicApi()->getPage(HubSpot\Crm\ObjectType::CONTACTS) +$hubspot->crm()->objects()->basicApi()->getPage($objectType) ``` #### File uploading diff --git a/lib/Crm/ObjectType.php b/lib/Crm/ObjectType.php index 25f740aa5..7ab68b416 100644 --- a/lib/Crm/ObjectType.php +++ b/lib/Crm/ObjectType.php @@ -4,11 +4,27 @@ class ObjectType { - public const CONTACTS = 'contacts'; public const COMPANIES = 'companies'; + public const CONTACTS = 'contacts'; public const DEALS = 'deals'; + public const TICKETS = 'tickets'; + public const APPOINTMENTS = 'appointments'; + public const CALLS = 'calls'; + public const COMMUNICATIONS = 'communications'; + public const COURSES = 'courses'; + public const EMAILS = 'emails'; + public const FEEDBACK_SUBMISSIONS = 'feedback_submissions'; + public const INVOICES = 'invoices'; + public const LEADS = 'leads'; public const LINE_ITEMS = 'line_items'; + public const MEETINGS = 'meetings'; + public const NOTES = 'notes'; + public const ORDERS = 'order'; + public const PAYMENTS = 'commerce_payments'; + public const POSTAL_MAIL = 'postal_mail'; public const PRODUCTS = 'products'; - public const TICKETS = 'tickets'; public const QUOTES = 'quotes'; + public const SUBSCRIPTIONS = 'subscriptions'; + public const TASKS = 'tasks'; + public const USERS = 'users'; }