Преглед на файлове

prepare post CRM lead info

master
Patrick Peng Sun преди 8 години
родител
ревизия
e928491f96
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. +9
    -0
      crmLead.go

+ 9
- 0
crmLead.go Целия файл

@@ -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
}

Loading…
Отказ
Запис