added data send loop
This commit is contained in:
@@ -61,20 +61,31 @@ export class ContactsDataService {
|
||||
let arrC=[];
|
||||
|
||||
alert(myString.length);
|
||||
// contactResult.contacts.macro( item=>{
|
||||
// arrC.push({
|
||||
// contactid: item.contactid,
|
||||
// given_name: item.name.given
|
||||
// }
|
||||
// )
|
||||
// })
|
||||
contactResult.contacts.macro( item=>{
|
||||
|
||||
this.usrData = {action:22010,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: myString
|
||||
}
|
||||
|
||||
arrC.push({
|
||||
contactid: item.contactid,
|
||||
given_name: item.name.given,
|
||||
email: item.emails.address
|
||||
} )
|
||||
|
||||
this.usrData = {action:22010,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: JSON.stringify(arrC)
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
// this.usrData = {action:22010,
|
||||
// member_id: this.sessionDataProviderService.member_id,
|
||||
// uid: this.sessionDataProviderService.member_uid,
|
||||
// sessionid: this.sessionDataProviderService.session ,
|
||||
// raw_contacts: myString
|
||||
// }
|
||||
|
||||
//JSON.stringify(contactResult.contacts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user