Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 18 additions & 2 deletions lib/Crm/ObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}