← Prev:Register iOS app for Google Sign-in | 🏠 | Next:Add Google Sing-in for iOS→ |
---|
This file contains 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
{ | |
"pathParameters": { | |
"id": "replace-this-with-the-id-of-an-item-you-have-in-your-dynamoDb-table" | |
}, | |
"requestContext": { | |
"identity": { | |
"cognitoIdentityId": "TEST-LOCAL-USER-A" | |
} | |
} | |
} |
This file contains 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
import { APP_CONSTANTS } from '../../config/app_constants'; | |
import getResponse from '../../utils/responseUtils'; | |
import * as AWS from "aws-sdk"; | |
const dynamoDb = new AWS.DynamoDB.DocumentClient({ | |
'region': 'us-east-1' | |
}); | |
export async function main(event, context, callback) { | |
This file contains 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
{ | |
"body": "{ \"word\": \"stranger-1\", \"meaning\": \"someone whom you don't know or who doesn't belong in a specific place\", \"example\": \"Don't talk to strangers.-1\" }", | |
"requestContext": { | |
"identity": { | |
"cognitoIdentityId": "TEST-LOCAL-USER-A" | |
} | |
}, | |
"pathParameters": { | |
"id": "replace-this-with-the-id-of-an-item-you-have-in-your-dynamoDb-table" | |
} |
This file contains 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
import { APP_CONSTANTS } from '../../config/app_constants'; | |
import getResponse from '../../utils/responseUtils'; | |
import * as AWS from "aws-sdk"; | |
const dynamoDb = new AWS.DynamoDB.DocumentClient({ | |
'region': 'us-east-1' | |
}); | |
export async function main(event , context, callback){ | |
const requestData = JSON.parse(event.body); |
This file contains 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
import { APP_CONSTANTS } from '../../config/app_constants'; | |
import getResponse from '../../utils/responseUtils'; | |
import * as AWS from "aws-sdk"; | |
const dynamoDb = new AWS.DynamoDB.DocumentClient({ | |
'region': 'us-east-1' | |
}); | |
export async function main(event, context, callback) { | |
const params = { |
This file contains 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
{ | |
"requestContext": { | |
"identity": { | |
"cognitoIdentityId": "TEST-LOCAL-USER-A" | |
} | |
} | |
} | |
This file contains 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
Show hidden characters
{ | |
"compilerOptions": { | |
"module":"es2015", | |
"target": "es2015", | |
"jsx": "react", | |
"rootDir": "src", | |
"outDir": "build", | |
"allowSyntheticDefaultImports": true, | |
"noImplicitAny": true, | |
"sourceMap": true, |
This file contains 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
import {Component,Input, OnChanges, SimpleChanges, SimpleChange} from '@angular/core'; | |
@Component({ | |
selector: 'item-details', | |
templateUrl: 'item-details.html', | |
}) | |
export class ItemDetails implements OnChanges { | |
private _item; | |
get item(): any { |
This file contains 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
import {Component,Input,SimpleChanges} from '@angular/core'; | |
@Component({ | |
selector: 'item-details', | |
templateUrl: 'item-details.html', | |
}) | |
export class ItemDetails { | |
private _item; // private property _item |