Closed DWboutin closed 7 years ago
Hi @DWboutin,
Could you please show us your code so that we can see how you're using it?
You can close it, i just misunderstand how it works!
But how the {type: 'day', value: number} Works? Should i put 20170203 for the day?
Hello @DWboutin,
No problem, the number represents how many days you want the time period to be (From today), so if you set it to 5, it will look at the last 5 days.
Ho great! I was think it was for a date.
Do you think the README.md will explain it better?
2017-02-03 11:46 GMT-05:00 Joel notifications@github.com:
Hello @DWboutin https://github.com/DWboutin,
No problem, the number represents how many days you want the time period to be (From today), so if you set it to 5, it will look at the last 5 days.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pat310/google-trends-api/issues/41#issuecomment-277298573, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQsFs0i_SoboU1AAj04YXLlJMPGEa14ks5rY1n9gaJpZM4K_ur5 .
-- Mikaël Boutin Développeur web "front-end" Twitter : @DWboutin http://twitter.com/#%21/DWboutin Github : DWboutin https://github.com/DWboutin LinkedIn: https://ca.linkedin.com/pub/mikael-boutin/27/732/b47
(581) 999-1252
This tries to explain it in the README.md here;
The following example provides the historical trend data for 'OJ Simpson' for the past 5 days. Optionally, the input could have been provided as googleTrends.trendData('OJ Simpson', {type: 'day', value: 5}).
Ho nice, i just didn't read for trendData
In the README.md, it's says that it's optionnal, but i got this: