powershell

$list=import-csv test.csv
foreach($c in $list)
{
$c|Add-Member Type "测试"
$body = ConvertTo-Json $c
$h=@{}
$h.Add("Authorization","bearer 123456")
Invoke-RestMethod -Uri "https://lccrm.linkedcare.cn/createCustomer" -Header $h -Method Post -Body ([System.Text.Encoding]::UTF8.GetBytes($body))
}

posted @ 2019-07-04 14:55  直钩钓鱼  阅读(160)  评论(0编辑  收藏  举报