Skip to content

Documentation bug #396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ani-patel opened this issue Dec 13, 2017 · 2 comments
Closed

Documentation bug #396

ani-patel opened this issue Dec 13, 2017 · 2 comments

Comments

@ani-patel
Copy link

Hi Team,

service = project.services.get(service_name='asana', project_id=932)

This throws me an error:
Traceback (most recent call last):
service = project.services.get(service_name='asana', project_id=932)
TypeError: get() takes exactly 2 arguments (1 given)

I think there is some incorrect key name to be used in parameters which is resulted in the error.
Can you help how can I make this work by giving the correct parameters to be passed?

Thanks

@ani-patel
Copy link
Author

ani-patel commented Dec 13, 2017

The code works if I use v3 client for gitlab (v3 API) Can you add documentation for v4 and test if it works?

@zeddicus76
Copy link

zeddicus76 commented Dec 15, 2017

looks to me like you only need to specify the service name. This worked for me with v4:

service = project.services.get('asana')

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants