I tried access your apis on creations of candidates with my python script its was success with basic information,when i tried of uploading with attachments by making it as base64 encode its says
So could any one please help me out in creation of candidate along with attachments.
import urllib
import json
import urllib2
import base64
image = open('/home/seeramtrinath/Desktop/streak_data/Abhik Singh tECH nEW 2014.docx', 'rb') #open binary file in read mode
image_read = image.read()
file_data = base64.urlsafe_b64encode(image_read)
# with open("/home/seeramtrinath/Desktop/streak_data/Abhik Singh tECH nEW 2014.docx", "rb") as f:
# file_data = f.read()
# file_data = file_data.encode("base64")
print "file_data",file_data
data ="""<Candidates>
<row no="1">
<FL val="Source">pradeep</FL>
<FL val="Current employer">I work for myself pradeep</FL>
<FL val="First Name">pradeeppradeeppradeep</FL>
<FL val="Last Name">TRTTT</FL>
<FL val="Phone">@yyyyyyy$</FL>
<FL val="Home Phone">09800000</FL>
<FL val="Other Phone">00000212</FL>
<FL val="Fax">02927272626</FL>
<FL val="Mobile">292827622</FL>
</row>
</Candidates >
"""
customer_call_json_obj1 = urllib.urlopen(customer_call_url)
customer_call_encoder = customer_call_json_obj1.read().decode('utf-8')
print "response",customer_call_encoder