d-anmusic/source/app.d

22 lines
472 B
D
Raw Normal View History

2017-08-29 09:19:28 +03:00
import std.stdio;
import std.net.curl;
import aimpremote;
void main()
{
auto http = HTTP();
// http.caInfo("cacert.pem");
http.handle.set(CurlOption.ssl_verifypeer, 0);
auto track = getInfo();
auto content = post("https://annimon.com/json/nowplay", [
"login" : "test",
"token" : "5token",
"artist" : to!string(track.artist),
"title" : to!string(track.title),
"genre" : to!string(track.genre)
], http);
}