Pārlūkot izejas kodu

prepare post CRM lead info

master
Patrick Peng Sun pirms 8 gadiem
vecāks
revīzija
e928491f96
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      crmLead.go

+ 9
- 0
crmLead.go Parādīt failu

@@ -155,3 +155,12 @@ func crmFindOpenID(openID string) (info crmLeadInfo, found bool, err error) {
found = true
return
}

//crmPrepareAttachmentHTTPHeader when uploading a file, we need its mime, auth header, etc.
func crmPrepareLeadUploadHTTPHeader() (headers map[string]string) {
headers = map[string]string{}
headers["Authorization"] = crmAuthHeader()
headers["Accept"] = "application/json"
headers["Content-Type"] = "application/json"
return headers
}

Notiek ielāde…
Atcelt
Saglabāt