Skip to content

Commit c63a6ae

Browse files
committed
Fix undefined method `build_pagination_params
1 parent d5d2e4f commit c63a6ae

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/ConvertKit_API.php

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,21 +1309,15 @@ public function get_broadcasts(
13091309
string $before_cursor = '',
13101310
int $per_page = 100
13111311
) {
1312-
// Build parameters.
1313-
$options = ['include_total_count' => $include_total_count];
1314-
1315-
// Build pagination parameters.
1316-
$options = $this->build_pagination_params(
1317-
params: $options,
1318-
after_cursor: $after_cursor,
1319-
before_cursor: $before_cursor,
1320-
per_page: $per_page
1321-
);
1322-
13231312
// Send request.
13241313
return $this->get(
13251314
endpoint: 'broadcasts',
1326-
args: $options
1315+
args: $this->build_total_count_and_pagination_params(
1316+
include_total_count: $include_total_count,
1317+
after_cursor: $after_cursor,
1318+
before_cursor: $before_cursor,
1319+
per_page: $per_page
1320+
)
13271321
);
13281322
}
13291323

0 commit comments

Comments
 (0)