【发布时间】:2015-04-01 09:40:01
【问题描述】:
subprocess.call('curl https://api.smartsheet.com/1.1/sheets -H "Authorization: Bearer 26lhbngfsybdayabz6afrc6dcd" -H "Content-Type: application/json" -X POST -d @test.json' )
我的test.json 有:
{
"name":"newsheet",
"columns":[
{
"title":"Favorite",
"type":"CHECKBOX",
"symbol":"STAR"
},
{
"title":"Primary Column",
"primary":true,
"type":"TEXT_NUMBER"
},
{
"title":"Status",
"type":"PICKLIST",
"options":[
"Not Started",
"Started",
"Completed"
]
}
]
}
【问题讨论】: