Flutter / googleapis / Gmail API send email returns 400 Bad Request The 2019 Stack Overflow Developer Survey Results Are InSending 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'

Likelihood that a superbug or lethal virus could come from a landfill

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

How to translate "being like"?

How can I define good in a religion that claims no moral authority?

What is this sharp, curved notch on my knife for?

Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?

Loose spokes after only a few rides

What is the meaning of Triage in Cybersec world?

How to support a colleague who finds meetings extremely tiring?

Why not take a picture of a closer black hole?

Deal with toxic manager when you can't quit

Why can't devices on different VLANs, but on the same subnet, communicate?

How do I free up internal storage if I don't have any apps downloaded?

Why doesn't UInt have a toDouble()?

Are there any other methods to apply to solving simultaneous equations?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Why did Peik say, "I'm not an animal"?

Output the Arecibo Message

Falsification in Math vs Science

How to add class in ko template in magento2

Can a flute soloist sit?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Keeping a retro style to sci-fi spaceships?

A word that means fill it to the required quantity



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



The 2019 Stack Overflow Developer Survey Results Are InSending 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'



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








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

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved