Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access token issue #34

Open
Laoumo opened this issue Sep 26, 2018 · 2 comments
Open

access token issue #34

Laoumo opened this issue Sep 26, 2018 · 2 comments

Comments

@Laoumo
Copy link

Laoumo commented Sep 26, 2018

hello,
I'm unable to have access to packages after setting the environnement variable :

EMPLOI_STORE_CLIENT_ID = u'XXX'
EMPLOI_STORE_CLIENT_SECRET = u'YYY'
client = emploi_store.Client(EMPLOI_STORE_CLIENT_ID,EMPLOI_STORE_CLIENT_SECRET)
offre_pack = client.get_package('offres')

I get :
ValueError: Autentication failed: 400 Client Error: Bad Request for url: https://entreprise.pole-emploi.fr/connexion/oauth2/access_token

thanks

@stefantastique
Copy link

Hello, I have the same error. Why ?

@pcorpet
Copy link
Member

pcorpet commented Jul 2, 2020

Sorry I wasn't able to reproduce, both for python3 and python2 :-(

Make sure you have the latest version of the package.

> python --version
Python 3.7.2
> pip show python-emploi-store
Name: python-emploi-store
Version: 0.9.1
Summary: Python client library for Pôle Emploi's "Emploi Store Dev".
Home-page: https://github.com/bayesimpact/python-emploi-store
Author: Pascal Corpet
Author-email: [email protected]
License: The MIT License (MIT)
Location: /usr/local/lib/python3.7/site-packages
Requires: requests, six
Required-by: 

I do reproduce your error if I'm using wrong client ID/secret (I've just removed the last char of my secret).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants