-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
back endapis, server logic, pluginsapis, server logic, plugins
Description
Note: for support questions, please use #ug-code-for-tulsa slack channel in Techlahoma or stackoverflow. This repository's issues are reserved for feature requests and bug reports.
-
I'm submitting a ...
- feature request
-
What is the current behavior?
No data fetching from meetup -
What is the expected behavior?
Our graphql client see Install graphql-request as a dependency #121 and Wireup GraphQL request to Meetup #115 will not be able to fetch techlahoma event data from the meetup API without authentication. We need to set up an OAuth/JWT token flow per https://www.meetup.com/api/authentication/#p04-jwt-flow-section. See @zenlex for credentials / setup.
sample flow from slack meetup connection:
const fs = require('fs');
const privateKey = fs.readFileSync(`${__dirname}/../jwt_priv.pem`, 'utf8');
// source .env file one directory up
const env = require('dotenv').config({path: `${__dirname}/../.env`});
const SELF_ID = env.parsed.SELF_ID;
const CLIENT_SECRET = env.parsed.CLIENT_SECRET;
const SIGNING_KEY_ID = env.parsed.SIGNING_KEY_ID;
const token = jwt.sign(
{},
privateKey,
{
algorithm: 'RS256',
issuer: CLIENT_SECRET,
subject: SELF_ID,
audience: 'api.meetup.com',
keyid: SIGNING_KEY_ID,
expiresIn: 120
}
);
console.log(token);
Metadata
Metadata
Assignees
Labels
back endapis, server logic, pluginsapis, server logic, plugins