Giter Site home page Giter Site logo

Comments (6)

rubenCodeforges avatar rubenCodeforges commented on June 13, 2024 2

google api uses oAuth , in order to use its resources you need a auth token , there are different ways to get it , with backend or with client, on client you can have a popup or redirect url .
this can be setup in clientCofig:

 /**
     * The UX mode to use for the sign-in flow.
     * By default, it will open the consent flow in a popup.
     */
    ux_mode?: "popup" | "redirect";

    /**
     * If using ux_mode='redirect', this parameter allows you to override the default redirect_uri that will be used at the end of the consent flow.
     * The default redirect_uri is the current URL stripped of query parameters and hash fragment.
     */
    redirect_uri?: string;

See the Readme for all parameters.
also check out gapi docs , as it is the core of ng-gapi

from ng-gapi.

rubenCodeforges avatar rubenCodeforges commented on June 13, 2024

@ratnam99 hi . ng-gapi allows you to use google api , here is a doc from google api https://developers.google.com/gmail/api/v1/reference/users/messages/send

from ng-gapi.

ratnam99 avatar ratnam99 commented on June 13, 2024

So, how can I use ng-gapi for sending email.
I don't want to open a pop up asking me for permissions. I need to set a default email id, using which email to sent to a recipient. The message I need to send via mail is a system generated text/html.

I will be very grateful, by your help.

Thanks in advance.

from ng-gapi.

rubenCodeforges avatar rubenCodeforges commented on June 13, 2024

@ratnam99 im closing this , seems to be solved

from ng-gapi.

ratnam99 avatar ratnam99 commented on June 13, 2024

Yes, Thanks for the help :)

from ng-gapi.

rachittyagi avatar rachittyagi commented on June 13, 2024

Hi @rubenCodeforges

I am trying to send email from the angular application, but I am struck at one point and the error message I am getting reads "Recipient address required". Can you please help me out in this? (Screenshot attached for reference)
Below are the permissions I am using:

  1. https://mail.google.com/
  2. https://www.googleapis.com/auth/gmail.readonly

Any help will be highly appreciated. Thanks in Advance.

image

from ng-gapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.