I would like to get some info from my todoist account with a perl script. The website provides an example using python and bash. curl https://todoist.com/API/v7/sync -d token=yourtokengoeshere -d sync_token='*' -d resource_types='["projects"]'
The curl command works but I would like to use perl and make a todo list script that will sync with todoist. There is a cpan module but it doesn't work. How would I use perl to get the info? I have this #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; my $url = 'https://todoist.com/API/v7/sync'; my $token = 'mytoken'; my $ua = new LWP::UserAgent(); my $response = $ua->post($url, token => $token); I have no idea how to pass my token or resource types to the api. Thank you for any help -- Derrick Cope --from my mutt -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/