launchdarkly / api-client-python

LaunchDarkly API Client for Python
Other
5 stars 8 forks source link

ProjectsApi.get_projects does not work #12

Open tjsingleton opened 2 years ago

tjsingleton commented 2 years ago

I tested this w\ 8.0.0 and 9.0.1.

configuration = launchdarkly_api.Configuration()
configuration.api_key['ApiKey'] = API_KEY

from launchdarkly_api.api import projects_api

api_client = launchdarkly_api.ApiClient(configuration)
projects_client = projects_api.ProjectsApi(api_client)
projects_client.get_projects()

TypeError: _from_openapi_data() missing 1 required positional argument: 'environments'

carmenquan commented 2 years ago

Hi @tjsingleton, thank you for reaching out! My suspicion is this is due to a new API version we released that our current client library is not compatible with. If you use an API key targeting 20210729 instead (in the past week we rolled out all API keys to default be created with 20220603). Could you try creating a new token set with that API version?

https://apidocs.launchdarkly.com/#section/Overview/Versioning

sloloris commented 1 year ago

Hi @tjsingleton ! Did this end up working for you? If so, we'll go ahead and close the issue; if you don't respond, we'll assume all is well and close it at the end of the week.