Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 37 additions & 1 deletion docs/class-ManyChat.Structure.Fb.Page.html
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,43 @@ <h2>see</h2>
</div>
</td>
</tr>



<tr id="_setBotFields">

<td class="attributes col-md-1">
<code class="keyword">
public


</code>
</td>

<td class="name">
<div>
<a class="anchor pull-right" href="#_setBotFields">#</a>
<code><a href="source-class-ManyChat.Structure.Fb.Page.html#332-340">setBotFields</a>( <span> array <span class="property-name">$fields</span> </span> )</code>

<div class="description">
Sets multiple bot fields






<h2>see</h2>
<div class="list">
<a href="https://api.manychat.com/swagger#/Page/post_fb_page_setBotFields">Documentation
of /fb/page/setBotFields method at manychat.com.</a><br>
</div>


</div>
</div>
</td>
</tr>
</table>

<table class="summary table table-bordered table-responsive table-striped">
Expand Down Expand Up @@ -731,4 +768,3 @@ <h2>see</h2>
</body>
</html>


112 changes: 111 additions & 1 deletion docs/class-ManyChat.Structure.Fb.Subscriber.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,117 @@ <h2>see</h2>
</div>
</td>
</tr>



<tr id="_findBySystemField">

<td class="attributes col-md-1">
<code class="keyword">
public


</code>
</td>

<td class="name">
<div>
<a class="anchor pull-right" href="#_findBySystemField">#</a>
<code><a href="source-class-ManyChat.Structure.Fb.Subscriber.html#333-345">findBySystemField</a>( <span> string <span class="property-name">$email</span> = <span class="php-keyword1">NULL</span></span>, <span> string <span class="property-name">$phone</span> = <span class="php-keyword1">NULL</span></span> )</code>

<div class="description">
Finds subscriber by system field (email or phone)






<h2>see</h2>
<div class="list">
<a href="https://api.manychat.com/swagger#/Subscriber/get_fb_subscriber_findBySystemField">Documentation
of /fb/subscriber/findBySystemField method at manychat.com.</a><br>
</div>


</div>
</div>
</td>
</tr>



<tr id="_setCustomFields">

<td class="attributes col-md-1">
<code class="keyword">
public


</code>
</td>

<td class="name">
<div>
<a class="anchor pull-right" href="#_setCustomFields">#</a>
<code><a href="source-class-ManyChat.Structure.Fb.Subscriber.html#361-370">setCustomFields</a>( <span> int <span class="property-name">$subscriber_id</span> </span>, <span> array <span class="property-name">$fields</span> </span> )</code>

<div class="description">
Sets multiple custom fields for a single subscriber






<h2>see</h2>
<div class="list">
<a href="https://api.manychat.com/swagger#/Subscriber/post_fb_subscriber_setCustomFields">Documentation
of /fb/subscriber/setCustomFields method at manychat.com.</a><br>
</div>


</div>
</div>
</td>
</tr>



<tr id="_updateSubscriber">

<td class="attributes col-md-1">
<code class="keyword">
public


</code>
</td>

<td class="name">
<div>
<a class="anchor pull-right" href="#_updateSubscriber">#</a>
<code><a href="source-class-ManyChat.Structure.Fb.Subscriber.html#391-416">updateSubscriber</a>( <span> int <span class="property-name">$subscriber_id</span> </span>, <span> string <span class="property-name">$first_name</span> = <span class="php-keyword1">NULL</span></span>, <span> string <span class="property-name">$last_name</span> = <span class="php-keyword1">NULL</span></span>, <span> string <span class="property-name">$phone</span> = <span class="php-keyword1">NULL</span></span>, <span> string <span class="property-name">$email</span> = <span class="php-keyword1">NULL</span></span>, <span> string <span class="property-name">$gender</span> = <span class="php-keyword1">NULL</span></span>, <span> bool <span class="property-name">$has_opt_in_sms</span> = <span class="php-keyword1">NULL</span></span>, <span> bool <span class="property-name">$has_opt_in_email</span> = <span class="php-keyword1">NULL</span></span>, <span> string <span class="property-name">$consent_phrase</span> = <span class="php-keyword1">NULL</span></span> )</code>

<div class="description">
Updates subscriber data






<h2>see</h2>
<div class="list">
<a href="https://api.manychat.com/swagger#/Subscriber/post_fb_subscriber_updateSubscriber">Documentation
of /fb/subscriber/updateSubscriber method at manychat.com.</a><br>
</div>


</div>
</div>
</td>
</tr>
</table>

<table class="summary table table-bordered table-responsive table-striped">
Expand Down Expand Up @@ -620,4 +731,3 @@ <h2>see</h2>
</body>
</html>


28 changes: 25 additions & 3 deletions docs/source-class-ManyChat.Structure.Fb.Page.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,31 @@
</span><span class="l" id="line-316"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;getApi()-&gt;callMethod(<span class="php-var">$methodName</span>, <span class="php-var">$arguments</span>, Request::POST);
</span><span class="l" id="line-317"> }
</span><span class="l" id="line-318">
</span><span class="l" id="line-319">}
</span><span class="l" id="line-320"></span><br></code></pre>
</span><span class="l" id="line-319"> <span class="php-comment">/**
</span></span><span class="l" id="line-320"><span class="php-comment"> * Sets multiple bot fields
</span></span><span class="l" id="line-321"><span class="php-comment"> *
</span></span><span class="l" id="line-322"><span class="php-comment"> * Use field_id or field_name to specify the field.
</span></span><span class="l" id="line-323"><span class="php-comment"> *
</span></span><span class="l" id="line-324"><span class="php-comment"> * @param array $fields Array of fields with field_id or field_name and field_value
</span></span><span class="l" id="line-325"><span class="php-comment"> *
</span></span><span class="l" id="line-326"><span class="php-comment"> * @return array The resulting array that was received from ManyChat API
</span></span><span class="l" id="line-327"><span class="php-comment"> * @throws CallMethodNotSucceedException If the result of calling method didn't succeed
</span></span><span class="l" id="line-328"><span class="php-comment"> * @see https://api.manychat.com/swagger#/Page/post_fb_page_setBotFields Documentation
</span></span><span class="l" id="line-329"><span class="php-comment"> * of /fb/page/setBotFields method at manychat.com.
</span></span><span class="l" id="line-330"><span class="php-comment"> *
</span></span><span class="l" id="line-331"><span class="php-comment"> */</span>
</span><span class="l" id="line-332"> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> setBotFields(<span class="php-keyword1">array</span> <span class="php-var">$fields</span>): <span class="php-keyword1">array</span>
</span><span class="l" id="line-333"> {
</span><span class="l" id="line-334"> <span class="php-var">$arguments</span> = [
</span><span class="l" id="line-335"> <span class="php-quote">'fields'</span> =&gt; <span class="php-var">$fields</span>,
</span><span class="l" id="line-336"> ];
</span><span class="l" id="line-337"> <span class="php-var">$methodName</span> = <span class="php-var">$this</span>-&gt;getMethodAddress(__FUNCTION__);
</span><span class="l" id="line-338">
</span><span class="l" id="line-339"> <span class="php-keyword1">return</span> <span class="php-var">$this</span>-&gt;getApi()-&gt;callMethod(<span class="php-var">$methodName</span>, <span class="php-var">$arguments</span>, Request::POST);
</span><span class="l" id="line-340"> }
</span><span class="l" id="line-341">
</span><span class="l" id="line-342">}
</span><span class="l" id="line-343"></span><br></code></pre>
</div>
<div id="footer">
Generated by <a href="https://github.com/apigen/apigen">ApiGen</a>
Expand All @@ -393,4 +416,3 @@
</body>
</html>


Loading