Ticket #488 (closed Bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Doc API contain bad test URLs

Reported by: willemijns Owned by:
Priority: major Milestone: RobotRock
Component: Core Keywords:
Cc: Sensitive:

Description

On every site, we have "quick doc of API"

example of first line which manages date request: Actions.getActions (idSite, period, date, expanded = , idSubtable = ) [ Example in XML, PHP, Json, Csv, Basic html , RSS of the last 10 days, 5 weeks, XML of the last 10 days ]

10 days, 5 weeks or last 10 days spoken in URL of yesterday :-X

 http://80.247.230.136/piwik/index.php?module=API&method=Referers.getRefererType&idSite=1&period=day&date=yesterday&format=rss&token_auth=XXXXXXXXXXXXXXX

choosen priority is major because it is a little annoying ;)

Change History

Changed 3 years ago by vipsoft

  • status changed from new to closed
  • resolution set to worksforme
  • milestone set to RobotRock

It appears you've disabled anonymous viewing of your piwik sites, i.e., in Settings => Users, you've set "anonymous" to "no access".

Otherwise, this is working correctly in 0.2.28 whether logged in or out.

Changed 3 years ago by vipsoft

p.s. If you don't want to see the "API" link, edit core/SmartyPlugins/function.assignTopBar.php.

Changed 3 years ago by willemijns

  • status changed from closed to reopened
  • resolution worksforme deleted

Changed 3 years ago by matt

Thanks for report. Fixed in [861]

Changed 3 years ago by matt

  • status changed from reopened to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.