Extract content from a GitHub .md file and put into a gist via GitHub API? - github

I want to be able to extract specific parts of a GitHub .md file and create a gist via the GitHub API. Possible?

Related

How to search text in files using github graphql api?

Is it possible to search text in files using graphql github API?
Because I see only issue, repository, user, or discussion there, and none of them is searching in files.
When I search using the website I get the results:

Do all GitHub repositories follow the same URL structure?

Do all GitHub repositories have a URL path of the form https://github.com/<OWNER>/<REPO>?
To answer your question, yes. But only if you are talking about navigating on github's website. Using github's api is a slightly different story and url.
When you need to pull down a particular file using github api, you have to use the github RAW urls. Heres another post that gives more context StackOverflow post

Github Dashboard-Feed via API or RSS?

When loading the github.com page, I see a dashboard feed showing a list of "pushed" / "starred" updates for all of my followed repos.
When checking the Network tab on Chrome, I can see that this feed comes from this endpoint:
https://github.com/dashboard-feed
How do I get this data via the github api? Is it also available via RSS?
Thanks
I don't think it will be available via RSS because to access this type of endpoint it requires authentication.
So what I think is, you can create your own activity feed with the help of individual RSS feeds (Atom feeds in case of GitHub) of the people's activity you want to get notified.
For example see codeSTACKr's RSS feed: https://github.com/codeSTACKr.atom
You can also use this API https://api.github.com/users/USERNAME/following to get all the following people (so you don't have to add individual user names without authentication).
For example see codeSTACKr's following list: https://api.github.com/users/codeSTACKr/following
Inspired by Rahul's reply which is very close, I did some googling and found this article on how to build a python crawler for Github's API which mentioned this recent events endpoint...
https://api.github.com/users/headwinds/received_events
...which lists the star events in order and you could use that rebuild a dashboard replacing the username.

Github APi to create and add user in Organization

Is there any way to create and add user in organization using API in Github?
Refer https://developer.github.com/v3/users/ for user Apis of GitHub

Sharing OneNote Notebook through API

As per the link to "Create sharing links on OneNote entities", it appears the OneNote API only supports sectionGroups.
POST ../sectiongroups/{sectiongroup-id}/Microsoft.OneNote.Api.GetOrCreateAnonymousSharingLink
It however seems possible to create a link to a notebook (or section) with the OneDrive API
POST ../sites/{site-id}/drive/items/{item-id}/createLink
Is there a problem with using the API this way (particularly as my notebooks don't have section groups)?