feeds
Creates, updates, deletes, gets or lists a feeds resource.
Overview
| Name | feeds |
| Type | Resource |
| Id | github.activity.feeds |
Fields
The following fields are returned by SELECT queries:
- get_feeds
Response
| Name | Datatype | Description |
|---|---|---|
_links | object | |
current_user_actor_url | string | (example: https://github.com/octocat.private.actor?token=abc123) |
current_user_organization_url | string | (example: https://github.com/octocat-org) |
current_user_organization_urls | array | |
current_user_public_url | string | (example: https://github.com/octocat) |
current_user_url | string | (example: https://github.com/octocat.private?token=abc123) |
repository_discussions_category_url | string | A feed of discussions for a given repository and category. (example: https://github.com/{user}/{repo}/discussions/categories/{category}) |
repository_discussions_url | string | A feed of discussions for a given repository. (example: https://github.com/{user}/{repo}/discussions) |
security_advisories_url | string | (example: https://github.com/security-advisories) |
timeline_url | string | (example: https://github.com/timeline) |
user_url | string | (example: https://github.com/{user}) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_feeds | select | Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs. * Timeline: The GitHub global public timeline * User: The public timeline for any user, using uri_template. For more information, see "Hypermedia."* Current user public: The public timeline for the authenticated user * Current user: The private timeline for the authenticated user * Current user actor: The private timeline for activity created by the authenticated user * Current user organizations: The private timeline for the organizations the authenticated user is a member of. * Security advisories: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub. By default, timeline resources are returned in JSON. You can specify the application/atom+xml type in the Accept header to return timeline resources in Atom format. For more information, see "Media types."> [!NOTE] > Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|
SELECT examples
- get_feeds
Lists the feeds available to the authenticated user. The response provides a URL for each feed. You can then get a specific feed by sending a request to one of the feed URLs.
* Timeline: The GitHub global public timeline
* User: The public timeline for any user, using uri_template. For more information, see "Hypermedia."
* Current user public: The public timeline for the authenticated user
* Current user: The private timeline for the authenticated user
* Current user actor: The private timeline for activity created by the authenticated user
* Current user organizations: The private timeline for the organizations the authenticated user is a member of.
* Security advisories: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.
By default, timeline resources are returned in JSON. You can specify the application/atom+xml type in the Accept header to return timeline resources in Atom format. For more information, see "Media types."
> [!NOTE]
> Private feeds are only returned when authenticating via Basic Auth since current feed URIs use the older, non revocable auth tokens.
SELECT
_links,
current_user_actor_url,
current_user_organization_url,
current_user_organization_urls,
current_user_public_url,
current_user_url,
repository_discussions_category_url,
repository_discussions_url,
security_advisories_url,
timeline_url,
user_url
FROM github.activity.feeds
;