public static PlexAuth NewPlexAuthPin() { var j = Get.DownloadJson(PlexEndpoints.PlexPinsEndpoint, RestSharp.Method.POST); return(JsonValidation.IsValidJson(j) ? PlexAuth.FromJson(j) : null); }
public static PlexAuth FromPinEndpoint(PlexAuth auth) { var j = Get.DownloadJson(auth.PinEndpointUrl); return(JsonValidation.IsValidJson(j) ? PlexAuth.FromJson(j) : null); }