Learn R Programming

gitear (version 1.0.0)

get_admin_organizations: Returns organizations for an administrator user

Description

Returns the list of organizations for a user with an administrator role

Usage

get_admin_organizations(base_url, api_key)

Arguments

base_url

The base URL for your gitea server (no trailing '/')

api_key

The user's API token key for the gitea service

Details

This function works only in the case that the `api_key` is associated with a user with administrator role

Examples

Run this code
# NOT RUN {
get_admin_organizations(base_url = "https://example.gitea.service.com",
                        api_key = "b6026f861fd41a94c3389d54293de9d04bde6f7c")
# }

Run the code above in your browser using DataLab