module GitHub::REST::Installations

Direct including types

Defined in:

githubcr/rest.cr

Instance Method Summary

Instance Method Detail

def add_repo_to_installation(installation_id : String, repository_id : String) : Nil #

[View source]
def create_content_attachment(token : String, content_reference_id : String, payload : ContentAttachmentPayload) : Installations::ContentAttachment #

You must use an installation access token to access this endpoint. https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation


[View source]
def create_installation_token(token : String, installation_id : String, payload : TokenInstallationPayload) : InstallationToken #

Need a JWT! please see.


[View source]
def delete_installation(token : String, installation_id : String) : Nil #

NOTE Raises an error if not found Need a JWT! please see.


[View source]
def get_installation(token : String, installation_id : String) : Installation #

Need a JWT! please see.


[View source]
def get_org_installation(token : String, organization : String) : Installation #

Need a JWT! please see.


[View source]
def get_repo_installation(token : String, owner : String, repository : String) : Installation #

Need a JWT! please see.


[View source]
def get_this_app_installations(token : String) : Installation #

Need a JWT! please see.


[View source]
def get_user_installation(token : String, username : String) : Installation #

Need a JWT! please see.


[View source]
def list_accessible_repos(token : String, installation_id : String) : Installation::InstallationRepositories #

NOTE Requires a user-to-server OAuth access token


[View source]
def list_repositories_installations(token : String) : Installation::InstallationRepositories #

[View source]
def list_user_installations(token : String) : Installation::InstallationUsers #

[View source]
def remove_repo_from_installation(installation_id : String, repository_id : String) : Nil #

[View source]
def revoke_installation_token(token : String) : Nil #

You must use an installation access token to access this endpoint. https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation


[View source]