Project

General

Profile

(ASAP) Error in goUploadLeads/goUploadMeJSON.php api

Added by Ibrahim marasa about 2 months ago

I am trying to add leads using goUploadLeads/goUploadMeJSON.php api

https://github.com/goautodial/goAPIv2/blob/master/goUploadLeads/goUploadMeJSON.php

but I face issue and I can't fetch what is an error exactly

What are parameters should be for this method??
I Know there are basic parameters, I want to know what is the structure of Json Parameter.

goUser="admin"
goPass="xxx"
goAction="goUploadMeJSON"
responsetype="json"
form 'user_group="xx"
log_user="admin"
session_user="admin"
goDupcheck="NONE"

jsonData = "{"list_id":1002,"leads":[{"fields":[{"FieldName":"phone_code","FieldType":"","FieldValue":"1"}, {"FieldName":"phone_number","FieldType":"","FieldValue":"8286678000"},{"FieldName":"title","FieldType":"","FieldValue":"test"},{"FieldName":"first_name","FieldType":"","FieldValue":"test"},{"FieldName":"state","FieldType":"","FieldValue":"NC"}]}]}"

I get the following error:

{"result":"error","message":"Uploading Leads interrupted due too some errors. Please contact
administrator.","LeadNotSaved":[{"fields":"`phone_code`,`phone_number`,`title`,`first_name`,`state`,`gmt_offset_now`","value":"\"1\",\"8286678000\",\"test\",\"test\",\"NC\",\"-5\""}]}


Replies (5)

RE: (ASAP) Error in goUploadLeads/goUploadMeJSON.php api - Added by Wittie Manansala about 2 months ago

Hi,

Please explain more you want to achieve.

It seems your inserting 1 contact or 1 customer info on specific List_id. As of now we dont have API can insert/add 1 contact.

RE: (ASAP) Error in goUploadLeads/goUploadMeJSON.php api - Added by Ibrahim marasa about 2 months ago

Sorry I didn't see you response

I will explain,,
In Lists under Telephony -> Lists
We want to add lead for List
for example
we have list_id = 1002
we want to add leads under this list

I am trying to use goUploadMeJSON method from api goUploadLeads/goUploadMeJSON.php
and I passed parameters as I explained above on the Post

but I always get the following error : {"result":"error","message":"Uploading Leads interrupted due too some errors. Please contact
administrator.","LeadNotSaved":[{"fields":"`phone_code`,`phone_number`,`title`,`first_name`,`state`,`gmt_offset_now`","value":"\"1\",\"8286678000\",\"test\",\"test\",\"NC\",\"-5\""}]}

    (1-5/5)
    Go to top