package Ġme . d dev il . mal . request Ċ Ċ import Ġme . d dev il . mal . MAL User Ċ import Ġorg . apache . http . client . HttpClient Ċ import Ġorg . apache . http . client . methods . HttpGet ĊĊ Ċ const Ġval ĠVERIFY _ CRED ENTIAL S _ PREFIX Ġ= Ġ" https :// my anime list . net / api / account / verify _ credentials . xml " Ċ Ċ class ĠVerify Credentials Request ( val Ġuser : ĠM AL User ) Ġ: ĠRequest < Boolean > Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġexecute ( client : ĠHttpClient , Ġuser : ĠM AL User ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġget Ġ= ĠHttp Get ( VERIFY _ CRED ENTIAL S _ PREFIX ) ĊĠĠĠĠĠĠĠ Ġget . add Header (" Authorization ", Ġ" Basic Ġ${ user . authorization }") ĊĠĠĠĠĠĠĠ Ġval Ġs Ġ= Ġclient . execute ( get ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġs . status Line . statusCode Ġ== Ġ 2 0 0 ĊĠĠĠ Ġ} Ċ }