Skip to content
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

Missing argument for parameter 'client' in call #2

Open
wmhass opened this issue Jul 1, 2021 · 2 comments
Open

Missing argument for parameter 'client' in call #2

wmhass opened this issue Jul 1, 2021 · 2 comments

Comments

@wmhass
Copy link

wmhass commented Jul 1, 2021

Hello,

I followed the example in the README.md, but I am getting this error:

Screenshot 2021-07-01 at 08 27 23

Not sure what I need to do? (I am using version 0.1.0)

@sanjayshreeyans
Copy link

Same problem

@sanjayshreeyans
Copy link

On version 0.3.2, might have to update. This worked for me -

import AsyncHTTPClient
var sheet: Spreadsheet!
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
 MyVariables.sheet =  try .get(spreadsheetId, using: authFactory, client: httpClient).wait ()

I am creating an empty HTTPClient with the module AsyncHTTPClient, and using it for the client argument. Note: This for spreadsheets, but I think it should be same for other uses too but change this line var sheet: Spreadsheet!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants