标签:
import requests,simplejson from requests_ntlm import HttpNtlmAuth p1 = requests.get("http://your_share_point_server_link/_api/Web/Lists(GUID ID#)/items", auth=HttpNtlmAuth(‘domain\\username‘,‘password‘),headers={‘accept‘: ‘application/json;odata=verbose‘}) print simplejson.dumps(simplejson.loads(simplejson.dumps(p1.json())))
关键是要用 requests_ntlm 来进行链接!
python 链接sharepoint 2013 REST api
标签:
原文地址:http://www.cnblogs.com/kiddy/p/4547419.html