Skip to content

Instantly share code, notes, and snippets.

@dersoi
dersoi / watchlist.php
Created November 6, 2015 22:11
Sync IMDb watchlist to trakt.tv watchlist. Usage: php -f watchlist.php trakt_apikey trakt_username trakt_passwordhash imdb_login imdb_password imdb_uid (IMDb login is email adress or nickname, it's NOT the ur12345678 bit, that's the imdb_uid)
<?php
define('TRAKT_APIKEY', $argv[1]);
define('TRAKT_USERNAME', $argv[2]);
define('TRAKT_PASSWORD', $argv[3]);
define('IMDB_EMAIL', $argv[4]);
define('IMDB_PASSWORD', $argv[5]);
define('IMDB_UID', $argv[6]);
function curl_post($urlpre, $data, $urlpost = '')
### Keybase proof
I hereby claim:
* I am dersoi on github.
* I am dersoi (https://keybase.io/dersoi) on keybase.
* I have a public key whose fingerprint is 4E42 F5E3 AE36 223C EEE2 95F5 0B78 F419 E09E 6758
To claim this, I am signing this object: