osauth::request
pub async fn to_json<T>(response: Response) -> Result<T, Error> where T: DeserializeOwned + Send,
Check the response and convert it to a JSON.