Flutter / googleapis / Gmail API send email returns 400 Bad RequestSending email in .NET through GmailSend email using the GMail SMTP server from a PHP pageGot errors when running flutter test commandUnexpected vertical lines between container elements of a rowDart SDK is not configuredFlutter iOS not using podsIssue with external keyboard emulation with usb RFID ReaderMake labelText of TextFormField Right to Left in Fluttervisual studio can't create an emulator for flutter applicationsFlutter Firebase Project won't compile after 'pod update'

CREATE opcode: what does it really do?

Was Spock the First Vulcan in Starfleet?

Class Action - which options I have?

A particular customize with green line and letters for subfloat

How do I go from 300 unfinished/half written blog posts, to published posts?

Sort a list by elements of another list

Do all network devices need to make routing decisions, regardless of communication across networks or within a network?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Why not increase contact surface when reentering the atmosphere?

Gears on left are inverse to gears on right?

Large drywall patch supports

Applicability of Single Responsibility Principle

How easy is it to start Magic from scratch?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Is the destination of a commercial flight important for the pilot?

Do the temporary hit points from Reckless Abandon stack if I make multiple attacks on my turn?

Is exact Kanji stroke length important?

How does Loki do this?

Avoiding estate tax by giving multiple gifts

How do we know the LHC results are robust?

You cannot touch me, but I can touch you, who am I?

Type int? vs type int

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

Escape a backup date in a file name



Flutter / googleapis / Gmail API send email returns 400 Bad Request


Sending email in .NET through GmailSend email using the GMail SMTP server from a PHP pageGot errors when running flutter test commandUnexpected vertical lines between container elements of a rowDart SDK is not configuredFlutter iOS not using podsIssue with external keyboard emulation with usb RFID ReaderMake labelText of TextFormField Right to Left in Fluttervisual studio can't create an emulator for flutter applicationsFlutter Firebase Project won't compile after 'pod update'













1















I'm facing issue using the googleapis package for Flutter/Dart. That's the code that I have...



import 'package:googleapis/gmail/v1.dart' as gMail;
import "package:googleapis_auth/auth_io.dart";
import 'package:flutter/services.dart' show rootBundle;

class Example
ServiceAccountCredentials credentials;

Future<gMail.GmailApi> getGMailApi() async
return gMail.GmailApi(await getGoogleClient());


Future<AuthClient> getGoogleClient() async
return await clientViaServiceAccount(await getCredentials(), [
'https://www.googleapis.com/auth/drive',
'https://mail.google.com/',
]);


Future<ServiceAccountCredentials> getCredentials() async
if (credentials == null)
credentials = ServiceAccountCredentials.fromJson(
json.decode(await rootBundle.loadString('GSuiteServiceAccountInfo.json')));


return credentials;


String getBase64Email(String source)
List<int> bytes = utf8.encode(source);
String base64String = base64UrlEncode(bytes);

return base64StringFormatted;


sendEmail(
String from: 'me',
String to: 'someemail@gmail.com',
String subject: 'Some subject',
String contentType: 'text/html',
String charset: 'utf-8',
String contentTransferEncoding: 'base64',
String emailContent: '<table></table>',
) async
(await getGMailApi()).users.messages.send(
gMail.Message.fromJson(
'raw': getBase64Email(
source: 'From: $fromrn'
'To: $torn'
'Subject: $subjectrn'
'Content-Type: $contentType; charset=$charsetrn'
'Content-Transfer-Encoding: $contentTransferEncodingrnrn'
'$emailContent'), // emailContent is HTML table.
),
from);




When I call sendEmail function I get DetailedApiRequestError(status: 400, message: Bad Request). But when I try to send the base64UrlEncoded string through the playground it works, the email is sent.



Here is my flutter doctor -v:



[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.316], locale en-US)
• Flutter version 1.2.1 at C:srcflutter-0.7.3flutter
• Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:UsersbbozhidarovAppDataLocalAndroidSdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = C:UsersbbozhidarovAppDataLocalAndroidSdk
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.3)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin version 33.3.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Community Edition (version 2018.1)
• IntelliJ at C:Program FilesJetBrainsIntelliJ IDEA Community Edition 2018.1.6
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code, 64-bit edition (version 1.30.2)
• VS Code at C:Program FilesMicrosoft VS Code
X Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

! Doctor found issues in 2 categories.


And this is my pubspec.yaml:



name: App Mobile
description: App Mobile

version: 1.0.0+1

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
intl: 0.15.7
cupertino_icons: 0.1.2
http: 0.11.3+17
shared_preferences: ^0.4.2
google_api_availability: 1.0.4
geolocator: 2.1.0
file_picker: 0.1.6
url_launcher: 4.0.3
flutter_calendar_carousel: 1.3.10
date_util: 0.1.4
permission_handler: 2.1.0
simple_permissions: 0.1.9
logging: 0.11.3+2
googleapis: 0.52.0+1
uuid: 2.0.0
googleapis_auth: 0.2.7

dev_dependencies:
flutter_test:
sdk: flutter

flutter:
uses-material-design: true
assets:
- assets/email_templates/dynamic_form_email_template.html
- assets/email_templates/dynamic_form_email_data_row_template.html
- GSuiteServiceAccountInfo.json


I exclude the possibility of an issue with the credentials. The same credentials/account/client is working well with DriveApi. Any help will be much appreciated. Thanks.










share|improve this question


























    1















    I'm facing issue using the googleapis package for Flutter/Dart. That's the code that I have...



    import 'package:googleapis/gmail/v1.dart' as gMail;
    import "package:googleapis_auth/auth_io.dart";
    import 'package:flutter/services.dart' show rootBundle;

    class Example
    ServiceAccountCredentials credentials;

    Future<gMail.GmailApi> getGMailApi() async
    return gMail.GmailApi(await getGoogleClient());


    Future<AuthClient> getGoogleClient() async
    return await clientViaServiceAccount(await getCredentials(), [
    'https://www.googleapis.com/auth/drive',
    'https://mail.google.com/',
    ]);


    Future<ServiceAccountCredentials> getCredentials() async
    if (credentials == null)
    credentials = ServiceAccountCredentials.fromJson(
    json.decode(await rootBundle.loadString('GSuiteServiceAccountInfo.json')));


    return credentials;


    String getBase64Email(String source)
    List<int> bytes = utf8.encode(source);
    String base64String = base64UrlEncode(bytes);

    return base64StringFormatted;


    sendEmail(
    String from: 'me',
    String to: 'someemail@gmail.com',
    String subject: 'Some subject',
    String contentType: 'text/html',
    String charset: 'utf-8',
    String contentTransferEncoding: 'base64',
    String emailContent: '<table></table>',
    ) async
    (await getGMailApi()).users.messages.send(
    gMail.Message.fromJson(
    'raw': getBase64Email(
    source: 'From: $fromrn'
    'To: $torn'
    'Subject: $subjectrn'
    'Content-Type: $contentType; charset=$charsetrn'
    'Content-Transfer-Encoding: $contentTransferEncodingrnrn'
    '$emailContent'), // emailContent is HTML table.
    ),
    from);




    When I call sendEmail function I get DetailedApiRequestError(status: 400, message: Bad Request). But when I try to send the base64UrlEncoded string through the playground it works, the email is sent.



    Here is my flutter doctor -v:



    [√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.316], locale en-US)
    • Flutter version 1.2.1 at C:srcflutter-0.7.3flutter
    • Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

    [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:UsersbbozhidarovAppDataLocalAndroidSdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:UsersbbozhidarovAppDataLocalAndroidSdk
    • Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

    [√] Android Studio (version 3.3)
    • Android Studio at C:Program FilesAndroidAndroid Studio
    • Flutter plugin version 33.3.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

    [!] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at C:Program FilesJetBrainsIntelliJ IDEA Community Edition 2018.1.6
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
    https://flutter.io/intellij-setup/#installing-the-plugins

    [!] VS Code, 64-bit edition (version 1.30.2)
    • VS Code at C:Program FilesMicrosoft VS Code
    X Flutter extension not installed; install from
    https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

    [√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

    ! Doctor found issues in 2 categories.


    And this is my pubspec.yaml:



    name: App Mobile
    description: App Mobile

    version: 1.0.0+1

    environment:
    sdk: ">=2.0.0-dev.68.0 <3.0.0"

    dependencies:
    flutter:
    sdk: flutter
    intl: 0.15.7
    cupertino_icons: 0.1.2
    http: 0.11.3+17
    shared_preferences: ^0.4.2
    google_api_availability: 1.0.4
    geolocator: 2.1.0
    file_picker: 0.1.6
    url_launcher: 4.0.3
    flutter_calendar_carousel: 1.3.10
    date_util: 0.1.4
    permission_handler: 2.1.0
    simple_permissions: 0.1.9
    logging: 0.11.3+2
    googleapis: 0.52.0+1
    uuid: 2.0.0
    googleapis_auth: 0.2.7

    dev_dependencies:
    flutter_test:
    sdk: flutter

    flutter:
    uses-material-design: true
    assets:
    - assets/email_templates/dynamic_form_email_template.html
    - assets/email_templates/dynamic_form_email_data_row_template.html
    - GSuiteServiceAccountInfo.json


    I exclude the possibility of an issue with the credentials. The same credentials/account/client is working well with DriveApi. Any help will be much appreciated. Thanks.










    share|improve this question
























      1












      1








      1


      1






      I'm facing issue using the googleapis package for Flutter/Dart. That's the code that I have...



      import 'package:googleapis/gmail/v1.dart' as gMail;
      import "package:googleapis_auth/auth_io.dart";
      import 'package:flutter/services.dart' show rootBundle;

      class Example
      ServiceAccountCredentials credentials;

      Future<gMail.GmailApi> getGMailApi() async
      return gMail.GmailApi(await getGoogleClient());


      Future<AuthClient> getGoogleClient() async
      return await clientViaServiceAccount(await getCredentials(), [
      'https://www.googleapis.com/auth/drive',
      'https://mail.google.com/',
      ]);


      Future<ServiceAccountCredentials> getCredentials() async
      if (credentials == null)
      credentials = ServiceAccountCredentials.fromJson(
      json.decode(await rootBundle.loadString('GSuiteServiceAccountInfo.json')));


      return credentials;


      String getBase64Email(String source)
      List<int> bytes = utf8.encode(source);
      String base64String = base64UrlEncode(bytes);

      return base64StringFormatted;


      sendEmail(
      String from: 'me',
      String to: 'someemail@gmail.com',
      String subject: 'Some subject',
      String contentType: 'text/html',
      String charset: 'utf-8',
      String contentTransferEncoding: 'base64',
      String emailContent: '<table></table>',
      ) async
      (await getGMailApi()).users.messages.send(
      gMail.Message.fromJson(
      'raw': getBase64Email(
      source: 'From: $fromrn'
      'To: $torn'
      'Subject: $subjectrn'
      'Content-Type: $contentType; charset=$charsetrn'
      'Content-Transfer-Encoding: $contentTransferEncodingrnrn'
      '$emailContent'), // emailContent is HTML table.
      ),
      from);




      When I call sendEmail function I get DetailedApiRequestError(status: 400, message: Bad Request). But when I try to send the base64UrlEncoded string through the playground it works, the email is sent.



      Here is my flutter doctor -v:



      [√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.316], locale en-US)
      • Flutter version 1.2.1 at C:srcflutter-0.7.3flutter
      • Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800
      • Engine revision 3757390fa4
      • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

      [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
      • Android SDK at C:UsersbbozhidarovAppDataLocalAndroidSdk
      • Android NDK location not configured (optional; useful for native profiling support)
      • Platform android-28, build-tools 28.0.3
      • ANDROID_HOME = C:UsersbbozhidarovAppDataLocalAndroidSdk
      • Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
      • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
      • All Android licenses accepted.

      [√] Android Studio (version 3.3)
      • Android Studio at C:Program FilesAndroidAndroid Studio
      • Flutter plugin version 33.3.1
      • Dart plugin version 182.5215
      • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

      [!] IntelliJ IDEA Community Edition (version 2018.1)
      • IntelliJ at C:Program FilesJetBrainsIntelliJ IDEA Community Edition 2018.1.6
      X Flutter plugin not installed; this adds Flutter specific functionality.
      X Dart plugin not installed; this adds Dart specific functionality.
      • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

      [!] VS Code, 64-bit edition (version 1.30.2)
      • VS Code at C:Program FilesMicrosoft VS Code
      X Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

      [√] Connected device (1 available)
      • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

      ! Doctor found issues in 2 categories.


      And this is my pubspec.yaml:



      name: App Mobile
      description: App Mobile

      version: 1.0.0+1

      environment:
      sdk: ">=2.0.0-dev.68.0 <3.0.0"

      dependencies:
      flutter:
      sdk: flutter
      intl: 0.15.7
      cupertino_icons: 0.1.2
      http: 0.11.3+17
      shared_preferences: ^0.4.2
      google_api_availability: 1.0.4
      geolocator: 2.1.0
      file_picker: 0.1.6
      url_launcher: 4.0.3
      flutter_calendar_carousel: 1.3.10
      date_util: 0.1.4
      permission_handler: 2.1.0
      simple_permissions: 0.1.9
      logging: 0.11.3+2
      googleapis: 0.52.0+1
      uuid: 2.0.0
      googleapis_auth: 0.2.7

      dev_dependencies:
      flutter_test:
      sdk: flutter

      flutter:
      uses-material-design: true
      assets:
      - assets/email_templates/dynamic_form_email_template.html
      - assets/email_templates/dynamic_form_email_data_row_template.html
      - GSuiteServiceAccountInfo.json


      I exclude the possibility of an issue with the credentials. The same credentials/account/client is working well with DriveApi. Any help will be much appreciated. Thanks.










      share|improve this question














      I'm facing issue using the googleapis package for Flutter/Dart. That's the code that I have...



      import 'package:googleapis/gmail/v1.dart' as gMail;
      import "package:googleapis_auth/auth_io.dart";
      import 'package:flutter/services.dart' show rootBundle;

      class Example
      ServiceAccountCredentials credentials;

      Future<gMail.GmailApi> getGMailApi() async
      return gMail.GmailApi(await getGoogleClient());


      Future<AuthClient> getGoogleClient() async
      return await clientViaServiceAccount(await getCredentials(), [
      'https://www.googleapis.com/auth/drive',
      'https://mail.google.com/',
      ]);


      Future<ServiceAccountCredentials> getCredentials() async
      if (credentials == null)
      credentials = ServiceAccountCredentials.fromJson(
      json.decode(await rootBundle.loadString('GSuiteServiceAccountInfo.json')));


      return credentials;


      String getBase64Email(String source)
      List<int> bytes = utf8.encode(source);
      String base64String = base64UrlEncode(bytes);

      return base64StringFormatted;


      sendEmail(
      String from: 'me',
      String to: 'someemail@gmail.com',
      String subject: 'Some subject',
      String contentType: 'text/html',
      String charset: 'utf-8',
      String contentTransferEncoding: 'base64',
      String emailContent: '<table></table>',
      ) async
      (await getGMailApi()).users.messages.send(
      gMail.Message.fromJson(
      'raw': getBase64Email(
      source: 'From: $fromrn'
      'To: $torn'
      'Subject: $subjectrn'
      'Content-Type: $contentType; charset=$charsetrn'
      'Content-Transfer-Encoding: $contentTransferEncodingrnrn'
      '$emailContent'), // emailContent is HTML table.
      ),
      from);




      When I call sendEmail function I get DetailedApiRequestError(status: 400, message: Bad Request). But when I try to send the base64UrlEncoded string through the playground it works, the email is sent.



      Here is my flutter doctor -v:



      [√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.316], locale en-US)
      • Flutter version 1.2.1 at C:srcflutter-0.7.3flutter
      • Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800
      • Engine revision 3757390fa4
      • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

      [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
      • Android SDK at C:UsersbbozhidarovAppDataLocalAndroidSdk
      • Android NDK location not configured (optional; useful for native profiling support)
      • Platform android-28, build-tools 28.0.3
      • ANDROID_HOME = C:UsersbbozhidarovAppDataLocalAndroidSdk
      • Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
      • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
      • All Android licenses accepted.

      [√] Android Studio (version 3.3)
      • Android Studio at C:Program FilesAndroidAndroid Studio
      • Flutter plugin version 33.3.1
      • Dart plugin version 182.5215
      • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

      [!] IntelliJ IDEA Community Edition (version 2018.1)
      • IntelliJ at C:Program FilesJetBrainsIntelliJ IDEA Community Edition 2018.1.6
      X Flutter plugin not installed; this adds Flutter specific functionality.
      X Dart plugin not installed; this adds Dart specific functionality.
      • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

      [!] VS Code, 64-bit edition (version 1.30.2)
      • VS Code at C:Program FilesMicrosoft VS Code
      X Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

      [√] Connected device (1 available)
      • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

      ! Doctor found issues in 2 categories.


      And this is my pubspec.yaml:



      name: App Mobile
      description: App Mobile

      version: 1.0.0+1

      environment:
      sdk: ">=2.0.0-dev.68.0 <3.0.0"

      dependencies:
      flutter:
      sdk: flutter
      intl: 0.15.7
      cupertino_icons: 0.1.2
      http: 0.11.3+17
      shared_preferences: ^0.4.2
      google_api_availability: 1.0.4
      geolocator: 2.1.0
      file_picker: 0.1.6
      url_launcher: 4.0.3
      flutter_calendar_carousel: 1.3.10
      date_util: 0.1.4
      permission_handler: 2.1.0
      simple_permissions: 0.1.9
      logging: 0.11.3+2
      googleapis: 0.52.0+1
      uuid: 2.0.0
      googleapis_auth: 0.2.7

      dev_dependencies:
      flutter_test:
      sdk: flutter

      flutter:
      uses-material-design: true
      assets:
      - assets/email_templates/dynamic_form_email_template.html
      - assets/email_templates/dynamic_form_email_data_row_template.html
      - GSuiteServiceAccountInfo.json


      I exclude the possibility of an issue with the credentials. The same credentials/account/client is working well with DriveApi. Any help will be much appreciated. Thanks.







      dart google-api flutter gmail






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 11:13









      Boyan BozhidarovBoyan Bozhidarov

      111




      111






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55062040%2fflutter-googleapis-gmail-api-send-email-returns-400-bad-request%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55062040%2fflutter-googleapis-gmail-api-send-email-returns-400-bad-request%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

          How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page

          Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices