Преглед изворни кода

wechat_hitxy_id -> wechatOpenID

master
Patrick Peng Sun пре 9 година
родитељ
комит
10d6aee4bb
12 измењених фајлова са 35 додато и 35 уклоњено
  1. +2
    -2
      crmEntity_test.go
  2. +3
    -3
      crmLead.go
  3. +5
    -5
      crmLead_test.go
  4. +1
    -1
      eventSubscribe_test.go
  5. +1
    -1
      sample_data/crm_view_lead.json
  6. +3
    -3
      sample_data/crmhar/save-lead.har
  7. +1
    -1
      sample_data/crmhar/search-ldea.har
  8. +4
    -4
      sample_data/crmhar/search-lead-Archive 17-06-04 14-01-27.har
  9. +3
    -3
      sample_data/crmhar/search-lead-by-wechat-id-c.hitxy.org.au.har
  10. +2
    -2
      sample_data/crmhar/view-specific-lead.har
  11. +1
    -1
      sample_data/duplicate_err-when-creating-entity.json
  12. +9
    -9
      sample_data/sample_crm_lead_query.json

+ 2
- 2
crmEntity_test.go Прегледај датотеку

nb, _ := json.Marshal(e) nb, _ := json.Marshal(e)
entity, err = crmReplaceEntity("Lead", id, nb) entity, err = crmReplaceEntity("Lead", id, nb)
AssertEqual(t, err, nil, "put should have no error") AssertEqual(t, err, nil, "put should have no error")
AssertEqual(t, entity.(crmdLead).WechatHitxyID, "newid", "wechat_hitxy_id should be updated")
AssertEqual(t, entity.(crmdLead).WechatHitxyID, "newid", "wechatOpenID should be updated")
AssertEqual(t, entity.(crmdLead).Password, "newpass", "password should have been changed to newpass") AssertEqual(t, entity.(crmdLead).Password, "newpass", "password should have been changed to newpass")


//delete //delete
AssertEqual(t, result[0].ID, ids[i], "the id should be correct.") AssertEqual(t, result[0].ID, ids[i], "the id should be correct.")


log.Printf("trying to match %d using WechatId,%s", i, ids[i]) log.Printf("trying to match %d using WechatId,%s", i, ids[i])
total, list, err = crmFindEntityByAttr("Lead", "wechat_hitxy_id", fmt.Sprintf("someopenid-%d", i))
total, list, err = crmFindEntityByAttr("Lead", "wechatOpenID", fmt.Sprintf("someopenid-%d", i))
result = list.([]crmdLead) result = list.([]crmdLead)
AssertEqual(t, err, nil, "find by attr should have no error") AssertEqual(t, err, nil, "find by attr should have no error")
AssertEqual(t, total, 1, "should have found 1 and only 1") AssertEqual(t, total, 1, "should have found 1 and only 1")

+ 3
- 3
crmLead.go Прегледај датотеку

//ModifiedAt string `json:"ModifiedAt,omitempty"` //ModifiedAt string `json:"ModifiedAt,omitempty"`
AccountName string `json:"accountName,omitempty"` AccountName string `json:"accountName,omitempty"`
Password string `json:"password,omitempty"` Password string `json:"password,omitempty"`
WechatHitxyID string `json:"wechat_hitxy_id,omitempty"`
WechatHitxyID string `json:"wechatOpenID,omitempty"`
Verifier []string `json:"verifier,omitempty"` Verifier []string `json:"verifier,omitempty"`
OpportunityAmountCurrency string `json:"opportunityAmountCurrency,omitempty"` OpportunityAmountCurrency string `json:"opportunityAmountCurrency,omitempty"`
OpportunityAmountConverted int `json:"opportunityAmountConverted,omitempty"` OpportunityAmountConverted int `json:"opportunityAmountConverted,omitempty"`
} }


func crmFindLeadByOpenID(openID string) (info crmdLead, found bool, err error) { func crmFindLeadByOpenID(openID string) (info crmdLead, found bool, err error) {
total, list, err := crmFindEntityByAttr("Lead", "wechat_hitxy_id", openID)
total, list, err := crmFindEntityByAttr("Lead", "wechatOpenID", openID)
if err != nil { if err != nil {
return return
} }
found = false found = false
if total > 1 { if total > 1 {


msg := fmt.Sprintf("wechat_hitxy_id %s has %d record", openID, total)
msg := fmt.Sprintf("wechatOpenID %s has %d record", openID, total)
log.Printf(msg) log.Printf(msg)
} }
return return

+ 5
- 5
crmLead_test.go Прегледај датотеку

"modifiedAt": "2017-04-18 04:41:06", "modifiedAt": "2017-04-18 04:41:06",
"accountName": "", "accountName": "",
"password": "abcdefg", "password": "abcdefg",
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [ "verifier": [
"231823091", "231823091",
"adkdaifaskfsafsa", "adkdaifaskfsafsa",
"modifiedAt": "2017-06-04 04:08:16", "modifiedAt": "2017-06-04 04:08:16",
"accountName": "", "accountName": "",
"password": "abcdefg", "password": "abcdefg",
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [ "verifier": [
"231823091", "231823091",
"adkdaifaskfsafsa", "adkdaifaskfsafsa",
"modifiedAt": "2017-06-04 06:57:48", "modifiedAt": "2017-06-04 06:57:48",
"accountName": "", "accountName": "",
"password": "abcdefg", "password": "abcdefg",
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [ "verifier": [
"231823091", "231823091",
"adkdaifaskfsafsa", "adkdaifaskfsafsa",
"modifiedAt": "2017-04-18 05:09:36", "modifiedAt": "2017-04-18 05:09:36",
"accountName": "", "accountName": "",
"password": null, "password": null,
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [], "verifier": [],
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,


AssertEqual(t, lead.FirstName, e.FirstName, "first name should match") AssertEqual(t, lead.FirstName, e.FirstName, "first name should match")
AssertEqual(t, lead.LastName, e.LastName, "lastname should match") AssertEqual(t, lead.LastName, e.LastName, "lastname should match")
AssertEqual(t, lead.WechatHitxyID, e.WechatHitxyID, "wechat_hitxy_id should match")
AssertEqual(t, lead.WechatHitxyID, e.WechatHitxyID, "wechatOpenID should match")
AssertEqual(t, lead.Password, e.Password, "password should match") AssertEqual(t, lead.Password, e.Password, "password should match")


//start query //start query

+ 1
- 1
eventSubscribe_test.go Прегледај датотеку

json.Unmarshal([]byte(msg), &s) json.Unmarshal([]byte(msg), &s)
newuser, err := s.registerNewLeadWithInfo(in) newuser, err := s.registerNewLeadWithInfo(in)
AssertEqual(t, err, nil, "should be successfully added new user") AssertEqual(t, err, nil, "should be successfully added new user")
AssertEqual(t, newuser.WechatHitxyID, in.header.FromUserName, "wechat_hitxy_id mismatch")
AssertEqual(t, newuser.WechatHitxyID, in.header.FromUserName, "wechatOpenID mismatch")
log.Printf("created temp Lead %s ", newuser.ID) log.Printf("created temp Lead %s ", newuser.ID)


deleted, err := crmDeleteEntity("Lead", newuser.ID) deleted, err := crmDeleteEntity("Lead", newuser.ID)

+ 1
- 1
sample_data/crm_view_lead.json Прегледај датотеку

"modifiedAt": "2017-06-04 04:08:16", "modifiedAt": "2017-06-04 04:08:16",
"accountName": "", "accountName": "",
"password": "abcdefg", "password": "abcdefg",
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [ "verifier": [
"231823091", "231823091",
"adkdaifaskfsafsa", "adkdaifaskfsafsa",

+ 3
- 3
sample_data/crmhar/save-lead.har Прегледај датотеку

"postData": { "postData": {
"mimeType": "application/json", "mimeType": "application/json",
"params": [], "params": [],
"text": "{\"firstName\":\"name\",\"lastName\":\"last\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"imagesIds\":[],\"imagesNames\":{},\"imagesTypes\":{},\"salutationName\":\"\",\"wechat_hitxy_id\":\"weid\",\"password\":\"123\",\"accountName\":\"\",\"emailAddressData\":[],\"emailAddress\":null,\"phoneNumberData\":[],\"phoneNumber\":null,\"title\":\"\",\"doNotCall\":false,\"addressPostalCode\":\"\",\"addressStreet\":\"\",\"addressState\":\"\",\"addressCity\":\"\",\"addressCountry\":\"\",\"website\":\"\",\"verifier\":[],\"opportunityAmount\":null,\"opportunityAmountCurrency\":null,\"campaignName\":null,\"campaignId\":null,\"description\":\"\",\"teamsIds\":[],\"teamsNames\":{}}"
"text": "{\"firstName\":\"name\",\"lastName\":\"last\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"imagesIds\":[],\"imagesNames\":{},\"imagesTypes\":{},\"salutationName\":\"\",\"wechatOpenID\":\"weid\",\"password\":\"123\",\"accountName\":\"\",\"emailAddressData\":[],\"emailAddress\":null,\"phoneNumberData\":[],\"phoneNumber\":null,\"title\":\"\",\"doNotCall\":false,\"addressPostalCode\":\"\",\"addressStreet\":\"\",\"addressState\":\"\",\"addressCity\":\"\",\"addressCountry\":\"\",\"website\":\"\",\"verifier\":[],\"opportunityAmount\":null,\"opportunityAmountCurrency\":null,\"campaignName\":null,\"campaignId\":null,\"description\":\"\",\"teamsIds\":[],\"teamsNames\":{}}"
}, },
"headersSize": 670 "headersSize": 670
}, },
"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 837, "size": 837,
"text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechat_hitxy_id\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"imagesTypes\":{}}"
"text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechatOpenID\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"imagesTypes\":{}}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 503, "headersSize": 503,
"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 1193, "size": 1193,
"text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechat_hitxy_id\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"createdByName\":\"wechat robot\",\"modifiedById\":null,\"modifiedByName\":null,\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"createdAccountId\":null,\"createdAccountName\":null,\"createdContactId\":null,\"createdContactName\":null,\"createdOpportunityId\":null,\"createdOpportunityName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"followersIds\":[\"58ef420cac3cf6c95\"],\"followersNames\":{\"58ef420cac3cf6c95\":\"wechat robot\"},\"imagesTypes\":{}}"
"text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechatOpenID\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"createdByName\":\"wechat robot\",\"modifiedById\":null,\"modifiedByName\":null,\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"createdAccountId\":null,\"createdAccountName\":null,\"createdContactId\":null,\"createdContactName\":null,\"createdOpportunityId\":null,\"createdOpportunityName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"followersIds\":[\"58ef420cac3cf6c95\"],\"followersNames\":{\"58ef420cac3cf6c95\":\"wechat robot\"},\"imagesTypes\":{}}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 504, "headersSize": 504,

+ 1
- 1
sample_data/crmhar/search-ldea.har Прегледај датотеку

"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 984, "size": 984,
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 503, "headersSize": 503,

+ 4
- 4
sample_data/crmhar/search-lead-Archive 17-06-04 14-01-27.har Прегледај датотеку

"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 984, "size": 984,
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 504, "headersSize": 504,
"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 984, "size": 984,
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 503, "headersSize": 503,
"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 984, "size": 984,
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 503, "headersSize": 503,
"content": { "content": {
"mimeType": "application/json", "mimeType": "application/json",
"size": 984, "size": 984,
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
"text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 503, "headersSize": 503,

+ 3
- 3
sample_data/crmhar/search-lead-by-wechat-id-c.hitxy.org.au.har Прегледај датотеку

"time": 80.47500002430752, "time": 80.47500002430752,
"request": { "request": {
"method": "GET", "method": "GET",
"url": "https://c.hitxy.org.au/api/v1/Lead?maxSize=20&offset=0&sortBy=createdAt&asc=false&where%5B0%5D%5Btype%5D=startsWith&where%5B0%5D%5Battribute%5D=wechat_hitxy_id&where%5B0%5D%5Bvalue%5D=the",
"url": "https://c.hitxy.org.au/api/v1/Lead?maxSize=20&offset=0&sortBy=createdAt&asc=false&where%5B0%5D%5Btype%5D=startsWith&where%5B0%5D%5Battribute%5D=wechatOpenID&where%5B0%5D%5Bvalue%5D=the",
"httpVersion": "HTTP/1.1", "httpVersion": "HTTP/1.1",
"headers": [ "headers": [
{ {
}, },
{ {
"name": "where%5B0%5D%5Battribute%5D", "name": "where%5B0%5D%5Battribute%5D",
"value": "wechat_hitxy_id"
"value": "wechatOpenID"
}, },
{ {
"name": "where%5B0%5D%5Bvalue%5D", "name": "where%5B0%5D%5Bvalue%5D",
"size": 1855, "size": 1855,
"mimeType": "application/json", "mimeType": "application/json",
"compression": 0, "compression": 0,
"text": "{\"total\":2,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":120,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-06-04 04:08:16\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":\"AUD\",\"opportunityAmountConverted\":120,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"1\",\"modifiedByName\":\"Admin\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null},{\"id\":\"58f4a849502da6f33\",\"name\":\"not searchable\",\"deleted\":false,\"salutationName\":\"Mr.\",\"firstName\":\"not\",\"lastName\":\"searchable\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:34:33\",\"modifiedAt\":\"2017-04-18 05:09:36\",\"accountName\":\"\",\"password\":null,\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
"text": "{\"total\":2,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":120,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-06-04 04:08:16\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":\"AUD\",\"opportunityAmountConverted\":120,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"1\",\"modifiedByName\":\"Admin\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null},{\"id\":\"58f4a849502da6f33\",\"name\":\"not searchable\",\"deleted\":false,\"salutationName\":\"Mr.\",\"firstName\":\"not\",\"lastName\":\"searchable\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:34:33\",\"modifiedAt\":\"2017-04-18 05:09:36\",\"accountName\":\"\",\"password\":null,\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}"
}, },
"redirectURL": "", "redirectURL": "",
"headersSize": 504, "headersSize": 504,

+ 2
- 2
sample_data/crmhar/view-specific-lead.har
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 1
- 1
sample_data/duplicate_err-when-creating-entity.json Прегледај датотеку

"modifiedAt": "2017-06-29 03:35:33", "modifiedAt": "2017-06-29 03:35:33",
"accountName": null, "accountName": null,
"password": "pp", "password": "pp",
"wechat_hitxy_id": "someopenid",
"wechatOpenID": "someopenid",
"verifier": null, "verifier": null,
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,

+ 9
- 9
sample_data/sample_crm_lead_query.json Прегледај датотеку

"modifiedAt": "2017-04-18 04:41:06", "modifiedAt": "2017-04-18 04:41:06",
"accountName": "", "accountName": "",
"password": "abcdefg", "password": "abcdefg",
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [ "verifier": [
"231823091", "231823091",
"adkdaifaskfsafsa", "adkdaifaskfsafsa",
"modifiedAt": "2017-06-30 03:16:53", "modifiedAt": "2017-06-30 03:16:53",
"accountName": null, "accountName": null,
"password": "pp", "password": "pp",
"wechat_hitxy_id": "someopenid",
"wechatOpenID": "someopenid",
"verifier": null, "verifier": null,
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,
"modifiedAt": "2017-06-30 03:11:45", "modifiedAt": "2017-06-30 03:11:45",
"accountName": null, "accountName": null,
"password": "pp", "password": "pp",
"wechat_hitxy_id": "someopenid",
"wechatOpenID": "someopenid",
"verifier": null, "verifier": null,
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,
"modifiedAt": "2017-06-28 11:38:20", "modifiedAt": "2017-06-28 11:38:20",
"accountName": null, "accountName": null,
"password": "password", "password": "password",
"wechat_hitxy_id": "oUN420Wj78vnkNeAJY7RMPXA28oc",
"wechatOpenID": "oUN420Wj78vnkNeAJY7RMPXA28oc",
"verifier": null, "verifier": null,
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,
"modifiedAt": "2017-06-26 02:32:11", "modifiedAt": "2017-06-26 02:32:11",
"accountName": "", "accountName": "",
"password": "dir", "password": "dir",
"wechat_hitxy_id": "dir",
"wechatOpenID": "dir",
"verifier": [], "verifier": [],
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,
"modifiedAt": "2017-06-26 02:32:11", "modifiedAt": "2017-06-26 02:32:11",
"accountName": "", "accountName": "",
"password": "123", "password": "123",
"wechat_hitxy_id": "weid",
"wechatOpenID": "weid",
"verifier": [], "verifier": [],
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,
"modifiedAt": "2017-06-26 02:32:11", "modifiedAt": "2017-06-26 02:32:11",
"accountName": "", "accountName": "",
"password": "abcdefg", "password": "abcdefg",
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [ "verifier": [
"231823091", "231823091",
"adkdaifaskfsafsa", "adkdaifaskfsafsa",
"modifiedAt": "2017-06-26 02:32:11", "modifiedAt": "2017-06-26 02:32:11",
"accountName": "", "accountName": "",
"password": null, "password": null,
"wechat_hitxy_id": "the user id obtained from wechat public account",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [], "verifier": [],
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,
"modifiedAt": "2017-06-26 02:32:11", "modifiedAt": "2017-06-26 02:32:11",
"accountName": "", "accountName": "",
"password": null, "password": null,
"wechat_hitxy_id": "abce667598",
"wechatOpenID": "abce667598",
"verifier": null, "verifier": null,
"opportunityAmountCurrency": null, "opportunityAmountCurrency": null,
"opportunityAmountConverted": null, "opportunityAmountConverted": null,

Loading…
Откажи
Сачувај