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

Add website via command line #12765

Closed
hamzahamidi opened this issue Apr 23, 2018 · 3 comments
Closed

Add website via command line #12765

hamzahamidi opened this issue Apr 23, 2018 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@hamzahamidi
Copy link

Any idea how to add a website for tracking with the command lines? Also how to retrieve a the tokenAuth after successfully logging in?

@tsteur
Copy link
Member

tsteur commented Apr 23, 2018

You can use curl to perform an API request or you can also use climulti similar to curl: ./console climulti:request "module=API&method=API.getMatomoVersion&format=json"

You can find the tokenAuth in your personal settings after logging in. Simply click on "Administration => Personal Settings"

@tsteur tsteur closed this as completed Apr 23, 2018
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Apr 23, 2018
@hamzahamidi
Copy link
Author

But how to retrieve the token auth using matomo API?

@tsteur
Copy link
Member

tsteur commented Apr 23, 2018

There is an API method UsersManager.getTokenAuth($userLogin, $md5Password) see https://developer.matomo.org/api-reference/reporting-api#UsersManager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants