Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6a04ac7
Merge pull request #512 from HubSpot/codegen/cmsBlogs
ksvirkou-hubspot Nov 10, 2025
255f93d
Revert "Codegen: CMS Blogs Authors and Tags"
ksvirkou-hubspot Nov 10, 2025
dd70be2
Merge pull request #514 from HubSpot/revert-512-codegen/cmsBlogs
ksvirkou-hubspot Nov 10, 2025
b706576
Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable in …
ksvirkou-hubspot Nov 12, 2025
d66dcfb
Add ObjectTypeIDs enum
ksvirkou-hubspot Nov 12, 2025
590ef82
Bump version to 13.1.0
ksvirkou-hubspot Nov 12, 2025
9dd5167
Change date
ksvirkou-hubspot Nov 12, 2025
cec2161
Merge pull request #518 from HubSpot/feature/fixWarnings
ksvirkou-hubspot Nov 13, 2025
66b7d0b
Merge pull request #519 from HubSpot/feature/ObjectTypeIDsEnum
ksvirkou-hubspot Nov 13, 2025
78fef56
Merge pull request #520 from HubSpot/feature/bumpVersion13.1.0
ksvirkou-hubspot Nov 13, 2025
a98ef6b
Fix typing
ksvirkou-hubspot Nov 17, 2025
f6ab24f
13.1.1
ksvirkou-hubspot Nov 17, 2025
45323b6
Fix versions
ksvirkou-hubspot Nov 17, 2025
cd6d627
Merge pull request #522 from HubSpot/feature/bumpVersion13.1.1
ksvirkou-hubspot Nov 17, 2025
a42faf6
Merge pull request #521 from HubSpot/feature/fixTyping
ksvirkou-hubspot Nov 17, 2025
96dbe3c
Update Object Type class
ksvirkou-hubspot Dec 15, 2025
6b1745e
13.2.0
ksvirkou-hubspot Dec 15, 2025
bcb6523
Change date
ksvirkou-hubspot Dec 15, 2025
96b6faa
Merge pull request #529 from HubSpot/feature/updateObjectType
ksvirkou-hubspot Dec 16, 2025
da53d40
Merge pull request #530 from HubSpot/feature/bumpVersion13.2.0
ksvirkou-hubspot Dec 16, 2025
c81e41e
Merge master to 14.0.0
ksvirkou-hubspot Dec 16, 2025
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
27 changes: 25 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,27 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.0.1...HEAD)
## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/13.2.0...HEAD)

## [13.2.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0) - 2025-12-17

### Updates

- Updated `ObjectType` enum.

## [13.1.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1) - 2025-11-17

### Fixes

- Fixed typing in `ObjectTypeIDs` enum.

## [13.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0) - 2025-11-13

### Updates

- Added `ObjectTypeIDs` enum.
- Updated `AssociationTypes` enum.
- Updated `crm()->obects()` API client.

## [13.0.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1) - 2025-05-13

Expand Down Expand Up @@ -982,7 +1002,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25. getSubscriptions => getAll (webhooks()->subscriptionsApi())
26. updateSubscription => update (webhooks()->subscriptionsApi())

[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.0.1...HEAD
[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/13.2.0...HEAD
[1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta
[1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0
[1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0
Expand Down Expand Up @@ -1045,3 +1065,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[13.0.0beta.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0beta.1
[13.0.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.0
[13.0.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.0.1
[13.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.0
[13.1.1]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.1.1
[13.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/13.2.0
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
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubspot/api-client",
"version": "13.0.1",
"version": "13.2.0",
"description": "Hubspot API client",
"keywords": [
"hubspot",
Expand Down Expand Up @@ -32,8 +32,8 @@
},
"autoload": {
"psr-4": {
"HubSpot\\Client\\" : "codegen/",
"HubSpot\\" : "lib/",
"HubSpot\\Client\\": "codegen/",
"HubSpot\\": "lib/",
"Hubspot\\Tests\\": "tests/"
}
}
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';
}
33 changes: 33 additions & 0 deletions lib/Enums/ObjectTypeIDs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace HubSpot\Enums;

class ObjectTypeIDs
{
public const COMPANIES = '0-2';
public const CONTACTS = '0-1';
public const DEALS = '0-3';
public const TICKETS = '0-5';
public const APPOINTMENTS = '0-421';
public const CALLS = '0-48';
public const COMMUNICATIONS = '0-18';
public const COURSES = '0-410';
public const EMAILS = '0-49';
public const FEEDBACK_SUBMISSIONS = '0-19';
public const INVOICES = '0-53';
public const LEADS = '0-136';
public const LINE_ITEMS = '0-8';
public const LISTINGS = '0-420';
public const MARKETING_EVENTS = '0-54';
public const MEETINGS = '0-47';
public const NOTES = '0-46';
public const ORDERS = '0-123';
public const PAYMENTS = '0-101';
public const POSTAL_MAIL = '0-116';
public const PRODUCTS = '0-7';
public const QUOTES = '0-14';
public const SERVICES = '0-162';
public const SUBSCRIPTIONS = '0-69';
public const TASKS = '0-27';
public const USERS = '0-115';
}