Projet

Général

Profil

« Précédent | Suivant » 

Révision 606ae999

Ajouté par Serghei Mihai il y a environ 9 ans

sending correct headers while provisionning services

Voir les différences:

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)

Formats disponibles : Unified diff