diff --git a/docs/class-ManyChat.Structure.Fb.Page.html b/docs/class-ManyChat.Structure.Fb.Page.html index 6b5394f..046c81f 100644 --- a/docs/class-ManyChat.Structure.Fb.Page.html +++ b/docs/class-ManyChat.Structure.Fb.Page.html @@ -673,6 +673,43 @@

see

+ + + + + + + + public + + + + + + +
+ # + setBotFields( array $fields ) + +
+ Sets multiple bot fields + + + + + + +

see

+ + + +
+
+ + @@ -731,4 +768,3 @@

see

- diff --git a/docs/class-ManyChat.Structure.Fb.Subscriber.html b/docs/class-ManyChat.Structure.Fb.Subscriber.html index a21afff..559d072 100644 --- a/docs/class-ManyChat.Structure.Fb.Subscriber.html +++ b/docs/class-ManyChat.Structure.Fb.Subscriber.html @@ -562,6 +562,117 @@

see

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + public + + + + +
+ # + findBySystemField( string $email = NULL, string $phone = NULL ) + +
+ Finds subscriber by system field (email or phone) + + + + + + +

see

+ + + +
+
+
+ + public + + + + +
+ # + setCustomFields( int $subscriber_id , array $fields ) + +
+ Sets multiple custom fields for a single subscriber + + + + + + +

see

+ + + +
+
+
+ + public + + + + +
+ # + updateSubscriber( int $subscriber_id , string $first_name = NULL, string $last_name = NULL, string $phone = NULL, string $email = NULL, string $gender = NULL, bool $has_opt_in_sms = NULL, bool $has_opt_in_email = NULL, string $consent_phrase = NULL ) + +
+ Updates subscriber data + + + + + + +

see

+ + + +
+
+
@@ -620,4 +731,3 @@

see

- diff --git a/docs/source-class-ManyChat.Structure.Fb.Page.html b/docs/source-class-ManyChat.Structure.Fb.Page.html index b05273f..0be8ae0 100644 --- a/docs/source-class-ManyChat.Structure.Fb.Page.html +++ b/docs/source-class-ManyChat.Structure.Fb.Page.html @@ -375,8 +375,31 @@ return $this->getApi()->callMethod($methodName, $arguments, Request::POST); } -} -
+ /** + * Sets multiple bot fields + * + * Use field_id or field_name to specify the field. + * + * @param array $fields Array of fields with field_id or field_name and field_value + * + * @return array The resulting array that was received from ManyChat API + * @throws CallMethodNotSucceedException If the result of calling method didn't succeed + * @see https://api.manychat.com/swagger#/Page/post_fb_page_setBotFields Documentation + * of /fb/page/setBotFields method at manychat.com. + * + */ + public function setBotFields(array $fields): array + { + $arguments = [ + 'fields' => $fields, + ]; + $methodName = $this->getMethodAddress(__FUNCTION__); + + return $this->getApi()->callMethod($methodName, $arguments, Request::POST); + } + +} +