Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 2.08 KB

ListMembersApi.md

File metadata and controls

65 lines (48 loc) · 2.08 KB

jiaozifs_client.ListMembersApi

All URIs are relative to http://localhost:34913/api/v1

Method HTTP request Description
list_members GET /repos/{owner}/{repository}/members get list of members in repository

list_members

list[Member] list_members(owner, repository)

get list of members in repository

Example

from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic_auth
configuration = jiaozifs_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: cookie_auth
configuration = jiaozifs_client.Configuration()
configuration.api_key['internal_auth_session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['internal_auth_session'] = 'Bearer'

# create an instance of the API class
api_instance = jiaozifs_client.ListMembersApi(jiaozifs_client.ApiClient(configuration))
owner = 'owner_example' # str | 
repository = 'repository_example' # str | 

try:
    # get list of members in repository
    api_response = api_instance.list_members(owner, repository)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListMembersApi->list_members: %s\n" % e)

Parameters

Name Type Description Notes
owner str
repository str

Return type

list[Member]

Authorization

basic_auth, cookie_auth, jwt_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]