-
-
Save sbis04/254c7bfd693364fcf71c7651a18f6be9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<VideoData> checkPostStatus({String videoId}) async { | |
try { | |
Response response = await _dio.get( | |
"/asset", | |
queryParameters: { | |
'videoId': videoId, | |
}, | |
); | |
if (response.statusCode == 200) { | |
VideoData videoData = VideoData.fromJson(response.data); | |
return videoData; | |
} | |
} catch (e) { | |
print('Error starting build: $e'); | |
throw Exception('Failed to check status'); | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment