Revision 606ae999
Added by Serghei Mihai over 8 years ago
ckanext/ozwillo_organization_api/plugin.py | ||
---|---|---|
110 | 110 |
'motivation': 'Used to link user to the organization' |
111 | 111 |
}] |
112 | 112 |
} |
113 |
headers = {'Content-type': 'application/json', |
|
114 |
'Accept': 'application/json'} |
|
113 | 115 |
requests.post(registration_uri, |
114 | 116 |
data = services, |
115 |
auth=(client_id, client_secret) |
|
117 |
auth=(client_id, client_secret), |
|
118 |
headers=headers |
|
116 | 119 |
) |
117 | 120 |
except Exception, e: |
118 | 121 |
log.debug('Exception "%s" occured while creating organization' % e) |
Also available in: Unified diff
sending correct headers while provisionning services