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

Nodejs: syno.vs.listTVShows is not a function #38

Closed
vanlooverenkoen opened this issue Jan 2, 2018 · 4 comments
Closed

Nodejs: syno.vs.listTVShows is not a function #38

vanlooverenkoen opened this issue Jan 2, 2018 · 4 comments

Comments

@vanlooverenkoen
Copy link

vanlooverenkoen commented Jan 2, 2018

This causes a TypeError: syno.vs.listTVShows is not a function. What am I doing wrong? The documentation is not clear.

var Syno = require('syno');
    var syno = new Syno({
        protocol: 'https',
        host: 'server',
        port: '5001',
        account: 'Me',
        passwd: 'Password',
        apiVersion: '6.0.2'
    });
   syno.vs.listTVShows({}, function(data){
        console.log(data);
        return res.json({
            message: "Running Fine!"
        });
    });
@vanlooverenkoen vanlooverenkoen changed the title Nodejs Nodejs: syno.vs.listTVShows is not a function Jan 2, 2018
@kwent
Copy link
Owner

kwent commented Jan 2, 2018

Hi @vanlooverenkoen.

Could you try listTvShows. Notice the Tv and not TV.

Regards

@vanlooverenkoen
Copy link
Author

    "code": 120,
    "errors": {
        "name": "library_id",
        "reason": "required"
    }

@kwent
Copy link
Owner

kwent commented Jan 2, 2018

Looks like you need to pass a library_id parameter you can get via listLibraries probably.

@kwent
Copy link
Owner

kwent commented May 19, 2018

Closing for inactivity

@kwent kwent closed this as completed May 19, 2018
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

2 participants