user data
This commit is contained in:
@@ -24,6 +24,7 @@ export class ContactsDataService {
|
||||
else{
|
||||
return;
|
||||
}
|
||||
/*
|
||||
Contacts.getContacts({projection: {
|
||||
name: true,
|
||||
phones: true,
|
||||
@@ -33,6 +34,25 @@ export class ContactsDataService {
|
||||
console.log(result);
|
||||
this.cacheContactsForAccount(result);
|
||||
});
|
||||
*/
|
||||
const retrieveListOfContacts = async () => {
|
||||
const projection = {
|
||||
// Specify which fields should be retrieved.
|
||||
name: true,
|
||||
phones: true,
|
||||
image: true,
|
||||
emails: true,
|
||||
postalAddresses: true,
|
||||
};
|
||||
|
||||
const result = await Contacts.getContacts({
|
||||
projection,
|
||||
}).then(result=>{
|
||||
console.log(result);
|
||||
this.cacheContactsForAccount(result);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
usrData: {
|
||||
@@ -44,13 +64,14 @@ export class ContactsDataService {
|
||||
};
|
||||
pPesult:any;
|
||||
async cacheContactsForAccount(contactResult){
|
||||
alert('AAAA->001');
|
||||
this.usrData = {action:22010,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: contactResult }
|
||||
|
||||
|
||||
alert(this.usrData.uid);
|
||||
alert(this.usrData.raw_contacts.toString());
|
||||
|
||||
this.wrenchService.processUsersContacts(this.usrData).subscribe(
|
||||
|
||||
Reference in New Issue
Block a user