Skip to content

Getting a column out of Projects (beta) #24598

Answered by cpswan
cpswan asked this question in API and Webhooks
Discussion options

You must be logged in to vote

I got the filtering working in Python, with some new scripts added to my dump_cards repo.

Most of the action is in the atdumpmemex.py module:

#!/usr/bin/env python3
import base64, json, os, requests

Color constants

Reference: https://gist.github.com/chrisopedia/8754917

COLERR="\033[0;31m"
COLINFO="\033[0;35m"
COLRESET="\033[m"

graphqlurl = 'https://api.github.com/graphql'
token = os.environ['GITHUB_API_TOKEN']
headers = {"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": "Bearer " + token,
"GraphQL-Features": "projects_next_graphql" }

def list_memex_projects(org):
query = ('query{ organization(login: \"' + org + '\") '
'{ projectsNext(first: 20) { nodes { i…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment