Forum Discussion
Ok, though I would advise against the path you're taking right now (for a sanity-check, please post what your top 10 Search terms are right now?).
To finalize your testing criteria, answer the following questions to generate a test list. You must make sure that you have the lists in order to prove a positive first. Get the list from Metrics directly, not the API:
If you're testing against stage, what are the top 10 terms for the certain period that you are selecting?
If you're testing against production, what are the top 10 terms for the certain time period you are selecting?
If you cant generate a list from the metrics console first, there is no way you're going to be able to generate a list from the API. So my advice is to at least establish that there is data there in the Web UI first.
I cant provide you a list of of the request working, because what you're asking for can only be provided if you we are both Admins on the same site. Meaning, I could not give you an example URL of a successful call here on the Lithosphere because you are not an Admin here. Likewise, I am not an Admin on your staging or Production site, so it is difficult to give you an example from your site.
If you are getting an "Access Denied" message, it is one of three things:
1. You are not an Admin
2. You are testing against stage and there is a restriction at the Apache level because of HTaccess
3. You do not have read REST API permissions set for an Admin (very unlikely, but still possible)
Thanks a lot for your answer.
I have checked that there is data in the Web UI first.
The search that I do from the Web UI is this (Reports -> User Search Reports):
(this search if for an entire week)
I can see at least 15 results. Then I copy the URL to use it through the REST API like this:
And the response is this:
<response status="success">
<metrics type="metrics" href="/metrics">
<metric name="board_views" type="long">543122</metric>
<metric name="message_views" type="long">27896002</metric>
<metric name="subscriptions_sent" type="long">3751</metric>
<metric name="threads_escalated" type="long">113</metric>
</metrics>
</response>
:(.
Could this be related with the REST API version that we are using?
Can I download the CSV using some sort of request?
Thanks again for your time.
Claudio.
Related Content
- 3 months ago
- 10 months ago
- 2 years ago