Skip to content

GET query parameters #30

Answered by ElMassimo
woodhull asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nathan!

The behavior is intended to allow passing a full object without sending unnecessary data.

To provide query parameters, do it explicitly using the query option:

  await PeopleApi.lookup({ account_id: '1234', query: { email: '[email protected]' } })

Notice that you can safely omit params in most cases.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants