Page MenuHomePhabricator

Add high-level function for generating citations using citoid
Closed, ResolvedPublic

Description

Add a function to ApiSite that calls the citoid endpoint (if available) and returns the returned citation.

Parameters:

  • url - the url to cite
  • format - the format to get the citation
  • language - the accepted language for the API

Throws on missing API.

Event Timeline

Change #1195215 had a related patch set uploaded (by Strainu; author: Strainu):

[pywikibot/core@master] Add Citoid API to pywikibot

https://gerrit.wikimedia.org/r/1195215

Change #1195215 merged by jenkins-bot:

[pywikibot/core@master] Add Citoid API to pywikibot

https://gerrit.wikimedia.org/r/1195215

Change #1195402 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] IMPR: Follow-up for Citoid Query interface implementation

https://gerrit.wikimedia.org/r/1195402

Change #1195402 merged by jenkins-bot:

[pywikibot/core@master] IMPR: Follow-up for Citoid Query interface implementation

https://gerrit.wikimedia.org/r/1195402