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

Query support? #172

Open
dannysmc95 opened this issue Oct 27, 2022 · 3 comments
Open

Query support? #172

dannysmc95 opened this issue Oct 27, 2022 · 3 comments

Comments

@dannysmc95
Copy link

Hello,

I am trying to do a query like so:
https://starcitizen.tools/api.php?action=query&format=json&prop=&list=categorymembers&cmtitle=Category%3AShips&cmprop=ids%7Ctitle&cmnamespace=0&cmlimit=500

But I can't see a way to do this via your API, anything I am missing? Or not something that is implemented?

Thanks,

dijs added a commit that referenced this issue Nov 7, 2022
@dijs
Copy link
Owner

dijs commented Nov 7, 2022

This is absolutely implemented.

Here you are:

wiki({ apiUrl: 'https://starcitizen.tools/api.php' })
  .api({
  format: 'json',
  prop: '',
  list: 'categorymembers',
  cmtitle: 'Category:Ships',
  cmprop: 'ids|title',
  cmnamespace: '0',
  cmlimit: '500'
})

@dijs dijs closed this as completed Nov 7, 2022
@dannysmc95
Copy link
Author

dannysmc95 commented Nov 9, 2022

Hi @dijs

Unfortunately api does not exist in that apparently, maybe set as private?

image

Thanks,

@dijs
Copy link
Owner

dijs commented Nov 11, 2022

It looks like it got left out of the type file: https://github.com/dijs/wiki/blob/master/index.d.ts Could you fix that? @dannysmc95

@dijs dijs reopened this Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants