This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Requirements | |
1. List Reminders | |
2. CRUD Reminders | |
3. User sets a reminder | |
Reminder Object | |
1. Name | |
2. Time | |
3. Repeat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This document contains my learnings on Google Content APIs. | |
By Content APIs i mean the combined set of APIs including Drive, Docs , Sheets and Slides. | |
Design Concepts | |
Google UI/Editors are not decoupled with the backend like MS WOPI APIs. They have to be used alongwith the Google Storage. | |
Google Docs/Sheets/Slides APIs can be used to edit and modify the content of the docs stored in Google Storage. | |
Google Drive is the backend of Google Docs/Sheets/Slides. | |
Google Drive APIs can be used for faceless interactions. Ids between Google Drive and Google Docs can be shared. | |
My Drive is specific to the user. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a Spring Boot Application from Spring Initializer using Maven as the build management. | |
Import the project in Eclipse. | |
Run the project using ./mvnw spring-boot:run -DSkipTests | |
Develop a Rest Controller for exposing the Rest APIs . Annonate the controller class with @RestController | |
Generated application has the main class annotated with @SpringBootApplication | |
Thymeleaf UI | |
Create a Controller class with @Controller annonation | |
Keep returning the View as string. | |
The View file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. App script editor https://script.google.com/home/projects/1AqDAmG9KBHIgIfV29rAYfrBnqBRMrscw4XxmMiTyUBpQMYgq15ViGkIk/edit | |
2. Calling third party APIs https://developers.google.com/workspace/add-ons/how-tos/non-google-services | |
3. Adding OAuth2 as a library https://morioh.com/p/5f9072920503 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>SDM Google Integration</title> | |
<style> | |
body { | |
background-color: black; | |
text-align: center; | |
color: white; | |
font-family: Arial, Helvetica, sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sample script to connect to SAP Document Managment using cmisjs | |
// https://github.com/agea/CmisJS | |
var cmis = require('cmis'); | |
//Pre-requisite is to create a service instance of SDM and onboard a repository. | |
// SDM api endpoint will be provided in VCAP | |
var session = new cmis.CmisSession('<server url>'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controller.hears('hi', 'message', async (bot, message) => { | |
console.log('I heard a message'); | |
await bot.beginDialog(DIALOG_ID); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myDialog = new BotkitConversation(DIALOG_ID, controller); | |
try { | |
myDialog.say('Hello'); | |
myDialog.ask('Do you like Music?', [ | |
{ | |
pattern: 'yes', | |
handler: async function (response, convo, bot) { | |
await askMusicPreferences(response, convo, bot); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function askMusicPreferences(answer, convo, bot) { | |
myDialog.ask('What would like to hear?', [ | |
{ | |
pattern: '.*', | |
handler: async (response, convo, bot, message) => { | |
try { | |
var channels = await YoutubeHelper.getChannel(response); | |
if (channels.length == 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extend the facebook app token | |
https://developers.facebook.com/tools/debug/accesstoken | |
1. Enter the access token. | |
2. Click on extend the access token and make it never expire | |
Troubleshooting | |
Unsupported post request. Object with ID 'me' does not exist, cannot be loaded due to missing permissions, or does not support this operation |
NewerOlder