Request class
Methods
-
deleteMedia(String accessToken, String mediaId)
→ Future<void>
-
-
get(String endpoint, )
→ Future<void>
-
-
getError()
→ String?
-
Get the error message. Returns null if the request has not been made yet or if there was
-
getErrorMessage()
→ String?
-
Get the error message. Returns null if the request has not been made yet or if there was
-
getHttpCode()
→ int?
-
Get the HTTP status code. Returns null if the request has not been made yet.
-
getMedia(String accessToken, String mediaId)
→ Future<void>
-
-
getMediaFileSize()
→ String?
-
Get Uploaded media file size. Returns null if the request has not been made yet or if there was
-
getMediaId()
→ String?
-
Get Uploaded media ID. Returns null if the request has not been made yet or if there was
-
getMediaMimeType()
→ String?
-
Get Uploaded media MIME type. Returns null if the request has not been made yet or if there was
-
getMediaSha256()
→ String?
-
Get Uploaded media SHA-256 hash. Returns null if the request has not been made yet or if there was
-
getMediaUrl()
→ String?
-
Get Uploaded media URL. Returns null if the request has not been made yet or if there was
-
getMessageId()
→ String?
-
Get the message ID. Returns null if the request has not been made yet or if there was
-
getPhoneNumber()
→ String?
-
Get the phone number. Returns null if the request has not been made yet or if there was
-
getResponse()
→ Map<String, dynamic>?
-
Get the response as a Map. Returns null if the request has not been made yet.
-
isSuccess()
→ bool
-
Check if the request was successful. Returns true if the HTTP status code is between 200
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
post(String endpoint, Map<String, dynamic>? body)
→ Future<void>
-
-
postForm(String endpoint, Map<String, String> body)
→ Future<void>
-
-
setVersion(String version)
→ void
-
Method to set custom version of the Facebook Graph API.
version
The version of the Facebook Graph API to use ex. v19.0
-
toString()
→ String
-
A string representation of this object.
inherited
-
uploadMediaFile({required String phoneNumberId, required String accessToken, required File file, required String fileType})
→ Future<void>
-
-
uploadMediaFileByUrl({required String phoneNumberId, required String accessToken, required String fileUrl, required String fileType})
→ Future<void>
-