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
Copy file name to clipboardExpand all lines: docs/QB.addressbook.html
+54-11Lines changed: 54 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -709,7 +709,8 @@ <h4 class="name" id=".get">
709
709
710
710
711
711
<divclass="description">
712
-
Retrive all contacts from address book.The method accepts 1 or 2 parameters.
712
+
Retrive all contacts from address book.
713
+
The method accepts 1 or 2 parameters.
713
714
</div>
714
715
715
716
@@ -764,7 +765,8 @@ <h4 class="name" id=".get">
764
765
765
766
766
767
767
-
You could pass udid of address book orcallback function if you want to get contacts from global address book.</td>
768
+
You could pass udid of address book or
769
+
callback function if you want to get contacts from global address book.</td>
768
770
</tr>
769
771
770
772
@@ -794,7 +796,8 @@ <h4 class="name" id=".get">
794
796
795
797
796
798
797
-
Callback function is used as 2nd parameter if you pass udid as 1st parameters.This callback takes 2 arguments: an error and a response.</td>
799
+
Callback function is used as 2nd parameter if you pass udid as 1st parameters.
800
+
This callback takes 2 arguments: an error and a response.</td>
798
801
</tr>
799
802
800
803
@@ -843,7 +846,15 @@ <h5>Example</h5>
843
846
844
847
845
848
846
-
<preclass="prettyprint"><code>var UDID = 'D337E8A4-80AD-8ABA-9F5D-579EFF6BACAB';function gotContacts(err, contacts) { contacts.forEach( (contact) => { alert(contact); })}QB.addressbook.get(gotContacts);// or you could specify what address book you need by udidQB.addressbook.get(UDID, gotContacts);</code></pre>
The method is used to create, update and delete contacts in address book.<br/>If contact doesn't exist in address book then it will be created. If contacts exists then it will be updated.If pass 'destroy: 1' then the contact will be removed.<br/><atarget="_blank" href="https://quickblox.com/developers/AddressBook">Found more here</a>. <br/>The method accepts 2 or 3 parameters.
1041
+
The method is used to create, update and delete contacts in address book.<br/>
1042
+
If contact doesn't exist in address book then it will be created. If contacts exists then it will be updated.
1043
+
If pass 'destroy: 1' then the contact will be removed.<br/>
1044
+
<atarget="_blank" href="https://quickblox.com/developers/AddressBook">Found more here</a>. <br/>
User's device identifier. If specified all operations will be in this context. Max length 64 symbols.If not - it means a user has one global address book across all his devices.</td>
1173
+
User's device identifier. If specified all operations will be in this context. Max length 64 symbols.
1174
+
If not - it means a user has one global address book across all his devices.</td>
Get names of privacy lists. <atarget="_blank" href="https://quickblox.com/developers/Web_XMPP_Chat_Sample#Retrieve_privacy_lists_names">More info.</a>Run without parameters
1127
+
Get names of privacy lists. <atarget="_blank" href="https://quickblox.com/developers/Web_XMPP_Chat_Sample#Retrieve_privacy_lists_names">More info.</a>
0 commit comments