fastai / ghapi

A delightful and complete interface to GitHub's amazing API
https://ghapi.fast.ai/
Apache License 2.0
526 stars 57 forks source link

pages does not work for list_packages_for_organization #156

Open olehm-ma opened 1 year ago

olehm-ma commented 1 year ago

pages function returns only the first page of packages

api = GhApi(token=gh_token)
pack_pages = pages(api.packages.list_packages_for_organization, 5, org="my_org", package_type="npm")
for page in pack_pages:
    for item in page:
        print(item['name'])

this code will print name of the packages from the first page only

Loki-Afro commented 1 year ago

in my case i had a spelling issue .. wrote pages instead of paged