Как создать токен доступа в Rest API - PullRequest
0 голосов
/ 26 января 2020

запросов на импорт

url = 'http://localhost/M2MIDServer/identity/connect/token/'

head = {'CompanyID': '55', 'Content-type': 'application / x- www-form-urlencoded '}

text =' grant_type=password&username=user&password=PASS&client_id=SALESFORCE&client_secret=Test@123&scope=M2MAPI '

response = arguments.post (url, header = head, data = text)

...