Skip to content

Instantly share code, notes, and snippets.

@kinlane
Created December 8, 2018 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kinlane/7471448ea081504037bad9cd9b117c8c to your computer and use it in GitHub Desktop.
Save kinlane/7471448ea081504037bad9cd9b117c8c to your computer and use it in GitHub Desktop.
Get GitHub User Events
openAPI: '2.0'
info:
title: Get User Events
description: This is an OpenAPI for the GitHub API user events capability.
contact:
name: API Evangelist
url: https://apievangelist.com
email: info@apievangelist.com
version: v1.0
host: api.github.com
basePath: /
schemes:
- https
produces:
- application/json
paths:
/users/{user}/events:
get:
summary: Get User Events
description: Gets public events for a user.
operationId: getOrgEvents
parameters:
- in: path
required: true
type: string
name: org
description: The user name.
default: kinlane
responses:
'200':
description: Response
schema:
type: array
items:
$ref: "#/definitions/response"
tags:
- Search Code
securityDefinitions:
appid:
type: apiKey
in: query
name: access_token
definitions:
response:
description: Full details about object
properties:
id:
type: string
type:
type: string
actor:
type: object
properties:
id:
type: integer
login:
type: string
display_login:
type: string
gravatar_id:
type: string
url:
type: string
avatar_url:
type: string
repo:
type: object
properties:
id:
type: integer
name:
type: string
url:
type: string
payload:
type: object
properties:
action:
type: string
public:
type: boolean
created_at:
type: string
org:
type: object
properties:
id:
type: integer
login:
type: string
gravatar_id:
type: string
url:
type: string
avatar_url:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment