derring-do / adobetarget Goto Github PK
View Code? Open in Web Editor NEWR Package for Adobe Target API [WIP]
R Package for Adobe Target API [WIP]
devtools::install_github("derring-do/adobeTarget", force=TRUE)
library(adobeTaRget)
exchangeJWTforBearerToken()
Error in py_run_file_impl(file, local, convert) :
ModuleNotFoundError: No module named 'jwt'
I get this error when I try to run exchangeJWTforBearerToken:
Error in py_call_impl(callable, dots$args, dots$keywords) :
AttributeError: 'str' object has no attribute 'decode'
I traced this back to the version of pyJWT I'm using (2.0.1) - I don't get this error if I downgrade to version 1.7.1 of that package. However, that's not possible for me because pyjwt 1.7.1 isn't compatible with the version of python I'm using.
It looks like if we remove line 69 (the jwt.decode line below) of ExchangeJWT.py, I can run the file and retrieve the Bearer Token successfully:
# create JSON Web Token, signing it with the private key.
jwt_token = jwt.encode(payload, priv_key, algorithm='RS256')
# decode bytes into string
#jwt_token = jwt.decode(jwt_token, priv_key, algorithms=['RS256'])
Would it work to have this package require pyJWT 2.0.0 or higher (jpadilla/pyjwt#587) and make that change to ExchangeJWT.py?
some fxns are on v3, some still v1/v2; currently hardcoded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.