using the googleapis library in dart to update a calendar and display it on a webpage

前端 未结 2 938
孤独总比滥情好
孤独总比滥情好 2021-01-25 07:14

I am new to dart and I have been trying to figure out how to use the googleapis library to update a calendars events, then display the calendar/events on a webpage.

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-25 08:02

    What you might be looking for is the hybrid flow. This produces two items

    • access credentials (for client side API access)
    • authorization code (for server side API access using the user credentials)

    From the documentation:

    Use case: A web application might want to get consent for accessing data on behalf of a user. The client part is a dynamic webapp which wants to open a popup which asks the user for consent. The webapp might want to use the credentials to make API calls, but the server may want to have offline access to user data as well.

    The page Google+ Sign-In for server-side apps describes how this flow works.

提交回复
热议问题