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

No idea why im getting this error :( #34

Open
Killa4 opened this issue Dec 30, 2019 · 0 comments
Open

No idea why im getting this error :( #34

Killa4 opened this issue Dec 30, 2019 · 0 comments

Comments

@Killa4
Copy link

Killa4 commented Dec 30, 2019

Error: listSingleEvents -{"origin":"Events.list","error":{"statusCode":"400(Bad Request)","errorBody":"<HTML>\n<HEAD>\n<TITLE>Bad Request</TITLE>\n</HEAD>\n<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\">\n<H1>Bad Request</H1>\n<H2>Error 400</H2>\n</BODY>\n</HTML>\n"}}

`const CONFIG = require('./settings.js');
const CalendarAPI = require('node-google-calendar');
let cal = new CalendarAPI(CONFIG);

let params = {
singleEvents: true,
orderBy: 'startTime'
}; //Optional query parameters referencing google APIs

cal.Events.list(CONFIG.calendarId, params)
.then(json => {
//Success
console.log('List of events on calendar within time-range:');
console.log(json);
}).catch(err => {
//Error
console.log('Error: listSingleEvents -' + err.message);
});`

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

No branches or pull requests

1 participant