Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
Created April 27, 2015 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuc-arc-f/bfc83774a7fd9be8a45d to your computer and use it in GitHub Desktop.
Save kuc-arc-f/bfc83774a7fd9be8a45d to your computer and use it in GitHub Desktop.
agri-blog1-2b
headers = {
"X-Parse-Application-Id": clsConst.mParse_APP_ID ,
"X-Parse-REST-API-Key": clsConst.mParse_REST_ID ,
"Content-Type": "application/json"
}
dtParam ={'mc_id': int(dict["mc_id"]) }
dtParam["snum1"] = int(dict["snum_1"])
dtParam["snum2"] = int(dict["snum_2"])
dtParam["snum3"] = int(dict["snum_3"])
dtParam["snum4"] = int(dict["snum_4"])
dtParam["dtnum"] = int(sTime)
r = requests.post('https://api.parse.com/1/classes/SenObject1', headers=headers , data=json.dumps(dtParam), timeout=30)
print r.status_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment