You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Create a private HubSpot app](https://developers.hubspot.com/docs/api/private-apps#create-a-private-app) and give it appropriate scopes for what you want to do with this SDK.
27
+
[Create a private HubSpot app](https://developers.hubspot.com/docs/api/private-apps#create-a-private-app) and give it appropriate scopes for what you want to do with this SDK.
28
28
29
29
Copy the provided access token, and add to your Laravel `.env` file:
30
30
@@ -102,8 +102,8 @@ This package provides three different ways of fetching these results.
102
102
103
103
#### Paginating
104
104
105
-
Similar to a traditional database paginated result, you can paginate through a HubSpot collection of objects.
106
-
You will receive a `LengthAwarePaginator` just like with Eloquent, which means you can generate links in your UI just like you are used to.
105
+
Similar to a traditional database paginated result, you can paginate through a HubSpot collection of objects.
106
+
You will receive a `LengthAwarePaginator` just like with Eloquent, which means you can generate links in your UI just like you are used to.
107
107
108
108
```php
109
109
$contacts = Contact::paginate(20);
@@ -113,8 +113,8 @@ By default, this `paginate` method will look at the `page` query parameter. You
113
113
114
114
#### Cursor iteration
115
115
116
-
You can use the `cursor` method to iterate over the entire collection of objects.
117
-
This uses [lazy collections](https://laravel.com/docs/9.x/collections#lazy-collections) and [generators](https://www.php.net/manual/en/language.generators.overview.php)
116
+
You can use the `cursor` method to iterate over the entire collection of objects.
117
+
This uses [lazy collections](https://laravel.com/docs/9.x/collections#lazy-collections) and [generators](https://www.php.net/manual/en/language.generators.overview.php)
118
118
to seamlessly fetch chunks of records from the API as needed, hydrating objects when needed, and providing smooth iteration over a limitless number of objects.
119
119
120
120
```php
@@ -129,7 +129,7 @@ foreach(Contact::cursor() AS $contact) {
129
129
130
130
#### Manually fetching chunks
131
131
132
-
Of course, you can grab collections of records with your own manual pagination or chunking logic.
132
+
Of course, you can grab collections of records with your own manual pagination or chunking logic.
133
133
Use the `take` and `after` methods to specify what you want to grab, and then `get`.
134
134
135
135
```php
@@ -143,7 +143,7 @@ $contacts = Contact::get();
143
143
### Searching and filtering
144
144
145
145
When retrieving multiple objects, you will frequently want to filter, search, and order these results.
146
-
You can use a fluent interface to build up a query before retrieving the results.
146
+
You can use a fluent interface to build up a query before retrieving the results.
0 commit comments