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

Added a setSiteAliasUrls method to the SitesManager API #221

Merged
merged 1 commit into from Feb 6, 2014

Conversation

crispygoth
Copy link
Contributor

This method works in a similar way to the addSiteAliasUrls method, but it completely overwrites the URL list rather than merely adding to it.

My use case: my site has an admin system where aliases can be added and removed by the users, and we need to update Piwik's alias list automatically. It's far easier to simply send over an API request containing the full list every time than to use the "add" method. The other option would be to use updateSite, but that means getting all the other data required by updateSite to send back.

This method works in a similar way to the addSiteAliasUrls method, but
it completely overwrites the URL list rather than merely adding to it.
mattab pushed a commit that referenced this pull request Feb 6, 2014
Added a setSiteAliasUrls method to the SitesManager API. Thanks for the Pull request!
@mattab mattab merged commit 277af28 into matomo-org:master Feb 6, 2014
@crispygoth crispygoth deleted the SitesManager_setSiteAliasUrls branch February 6, 2014 11:37
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

Successfully merging this pull request may close these issues.

None yet

2 participants