Skip to content

Commit 2dd0480

Browse files
committed
Completed tests
1 parent 14fc85c commit 2dd0480

File tree

2 files changed

+311
-117
lines changed

2 files changed

+311
-117
lines changed

src/ConvertKit_API.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,14 @@ public function get_form_subscriptions(
430430
}
431431

432432
/**
433-
* Gets all sequences
433+
* Gets sequences
434434
*
435-
* @see https://developers.convertkit.com/#list-sequences
435+
* @param string $after_cursor Return results after the given pagination cursor.
436+
* @param string $before_cursor Return results before the given pagination cursor.
437+
* @param integer $per_page Number of results to return.
438+
*
439+
* @see https://developers.convertkit.com/v4.html#list-sequences
436440
*
437-
* @param string $after_cursor Return results after the given pagination cursor.
438-
* @param string $before_cursor Return results before the given pagination cursor.
439-
* @param integer $per_page Number of results to return.
440-
*
441441
* @return false|mixed
442442
*/
443443
public function get_sequences(string $after_cursor = '', string $before_cursor = '', int $per_page = 100)
@@ -455,16 +455,17 @@ public function get_sequences(string $after_cursor = '', string $before_cursor =
455455
/**
456456
* Adds a subscriber to a sequence by email address
457457
*
458-
* @param integer $sequence_id Sequence ID.
459-
* @param string $email Email Address.
458+
* @param integer $sequence_id Sequence ID.
459+
* @param string $email Email Address.
460460
*
461461
* @see https://developers.convertkit.com/v4.html#add-subscriber-to-sequence-by-email-address
462462
*
463463
* @return false|mixed
464464
*/
465-
public function add_subscriber_to_sequence(int $sequence_id, string $email) {
465+
public function add_subscriber_to_sequence(int $sequence_id, string $email)
466+
{
466467
return $this->post(
467-
endpoint: sprintf('sequences/%s/subscribers', $sequence),
468+
endpoint: sprintf('sequences/%s/subscribers', $sequence_id),
468469
args: ['email_address' => $email]
469470
);
470471
}

0 commit comments

Comments
 (0)