MCPcopy Create free account

hub / github.com/firebase/functions-samples / functions

Functions169 in github.com/firebase/functions-samples

↓ 7 callersFunctionask
(question)
Node-1st-gen/okta-auth/setup.js:83
↓ 5 callersFunctiongetX
(angle)
Node-1st-gen/image-maker/functions/clock.js:33
↓ 5 callersFunctiongetY
(angle)
Node-1st-gen/image-maker/functions/clock.js:37
↓ 5 callersFunctionhandleResponse
(username, status, body)
Node-1st-gen/username-password-auth/functions/index.js:47
↓ 4 callersFunctiondrawBlock
(x, y, level, ctx)
Node-1st-gen/image-maker/functions/ray.js:46
↓ 4 callersFunctionformatAmount
(amount, currency)
Node-1st-gen/stripe/public/javascript/app.js:272
↓ 4 callersFunctiongetSlackmoji
* Convert a test result status into a Slackmoji * @param {string} term * @return {string}
Node/testlab-to-slack/functions/index.js:68
↓ 4 callersFunctiongetSlackmoji
(term)
Node-1st-gen/testlab-to-slack/functions/index.js:57
↓ 4 callersFunctionslackmoji
Convert a test result status into a Slackmoji.
Python/testlab-to-slack/functions/main.py:44
↓ 3 callersFunctionauthHeader
* Creates "Authorization" header value. * @return {string} Basic, base64-encoded "Authorization" header value
Node/app-distribution-feedback-to-jira/functions/index.js:75
↓ 3 callersFunctionmakeKeyFirebaseCompatible
* Makes sure the given string does not contain characters that can't be used as Firebase * Realtime Database keys such as '.' and replaces them by '*
Node-1st-gen/exif-images/functions/index.js:99
↓ 3 callersFunctionpostMessageToDiscord
* Posts a message to Discord with Discord's Webhook API * * @param {string} botName - The bot username to display * @param {string} messageBody - T
Node/alerts-to-discord/functions/index.js:36
↓ 3 callersFunctionpost_message_to_discord
Posts a message to Discord with Discord's Webhook API. Params: bot_name: The bot username to display message_body: The message to
Python/alerts-to-discord/functions/main.py:27
↓ 2 callersFunctionformat
(src: str)
Python/pyfmt.py:57
↓ 2 callersFunctiongetDeviceTokens
* Get the Device Tokens for the given user. * * @param {string} uid The UID of the user.
Node-1st-gen/coupon-on-purchase/functions/index.js:123
↓ 2 callersFunctiongetPointColor
(x, y)
Node-1st-gen/image-maker/functions/ray.js:60
↓ 2 callersFunctiongetRedirectUri
()
Node-1st-gen/linkedin-auth/functions/index.js:40
↓ 2 callersFunctiongetTemplate
(version, accessToken)
Node-1st-gen/remote-config-diff/functions/index.js:53
↓ 2 callersMethodmeasureMs
* Get the time since this timer was constructed * @return {string}
Node/instrument-with-opentelemetry/functions/timer.js:29
↓ 2 callersFunctionreportError
(err, context = {})
Node-1st-gen/stripe/functions/index.js:180
↓ 2 callersFunctionsecondsLeftBeforeEndOfHour
(date)
Node-1st-gen/quickstarts/big-ben/functions/index.js:68
↓ 2 callersFunctionuserFacingMessage
* Sanitize the error message for the user.
Node-1st-gen/stripe/functions/index.js:221
↓ 2 callersFunctionzeroDecimalCurrency
(amount, currency)
Node-1st-gen/stripe/public/javascript/app.js:291
↓ 1 callersFunctionaddDecodedIdTokenToRequest
* Returns a Promise with the Decoded ID Token and adds it to req.user.
Node-1st-gen/template-handlebars/functions/firebaseUser.js:62
↓ 1 callersFunctionanalyze_photo_with_ml
(url)
Python/quickstarts/auth-blocking-functions/functions/main.py:188
↓ 1 callersFunctionappendPromise
(requestWithoutAuth)
Node-1st-gen/google-sheet-sync/functions/index.js:100
↓ 1 callersFunctionauthenticate
* Authenticate the provided credentials. * TODO(DEVELOPER): In production you'll need to update this function so that it authenticates with your own
Node-1st-gen/username-password-auth/functions/index.js:99
↓ 1 callersFunctionblurImage
* Blurs the given image located in the given bucket using ImageMagick.
Node-1st-gen/moderate-images/functions/index.js:76
↓ 1 callersFunctionbuildCreateIssueRequest
* Builds payload for creating a Jira issue. * @param {AlertEvent<InAppFeedbackPayload>} event
Node/app-distribution-feedback-to-jira/functions/index.js:163
↓ 1 callersFunctioncalculateDiscount
* Sum discounts of all `productIds` * @param {string[]} productIds * @return {number}
Node/instrument-with-opentelemetry/functions/index.js:65
↓ 1 callersFunctioncalculatePrice
* Get prices for all products in `productIds` array * @param {string[]} productIds * @return {number}
Node/instrument-with-opentelemetry/functions/index.js:47
↓ 1 callersFunctioncategorizeScore
(score)
Node-1st-gen/authenticated-json-api/functions/index.js:154
↓ 1 callersFunctioncheck_and_diff
(files: list[str])
Python/pyfmt.py:36
↓ 1 callersFunctionclock
(ctx, colorOpts)
Node-1st-gen/image-maker/functions/clock.js:41
↓ 1 callersFunctioncontainsSwearwords
* Returns true if the string contains swearwords. * @param {string} message * @return {boolean}
Node/quickstarts/callable-functions/functions/sanitizer.js:44
↓ 1 callersFunctioncontainsSwearwords
(message)
Node-1st-gen/text-moderation/functions/index.js:65
↓ 1 callersFunctioncreateFirebaseAccount
* Creates a Firebase account with the given user profile and returns a custom auth token allowing * signing-in this account. * Also saves the access
Node-1st-gen/spotify-auth/functions/index.js:128
↓ 1 callersFunctioncreateFirebaseAccount
* Creates a Firebase account with the given user profile and returns a custom auth token allowing * signing-in this account. * Also saves the access
Node-1st-gen/instagram-auth/functions/index.js:127
↓ 1 callersFunctioncreateFirebaseAccount
* Creates a Firebase account with the given user profile and returns a custom auth token allowing * signing-in this account. * Also saves the access
Node-1st-gen/linkedin-auth/functions/index.js:147
↓ 1 callersFunctioncreateIssue
* Creates new issue in Jira. * @param {AlertEvent<InAppFeedbackPayload>} event
Node/app-distribution-feedback-to-jira/functions/index.js:85
↓ 1 callersFunctiondeleteInactiveUser
* Deletes one inactive user from the list. * @param {admin.auth.UserRecord[]} inactiveUsers * @return {null | Promise<void>}
Node/delete-unused-accounts-cron/functions/index.js:58
↓ 1 callersFunctiondeleteInactiveUser
* Deletes one inactive user from the list.
Node-1st-gen/delete-unused-accounts-cron/functions/index.js:43
↓ 1 callersFunctionfix_region_tags
Fix formattiing of region tags. - Remove extra blank lines after START tags. - Remove extra blank lines before END tags. - Matches indent
Python/pyfmt.py:66
↓ 1 callersFunctionformatAmountForStripe
(amount, currency)
Node-1st-gen/stripe/public/javascript/app.js:283
↓ 1 callersFunctionfs_listen_online
()
Node-1st-gen/presence-firestore/public/index.js:125
↓ 1 callersFunctiongetAuthorizedClient
()
Node-1st-gen/google-sheet-sync/functions/index.js:118
↓ 1 callersFunctiongetDefaultOpts
()
Node-1st-gen/image-maker/functions/clock.js:19
↓ 1 callersFunctiongetFirebaseProjectId
* Returns the ID of the Firebase project.
Node-1st-gen/username-password-auth/public/main.js:21
↓ 1 callersFunctiongetFunctionUrl
* Get the URL of a given v2 cloud function. * * @param {string} name the function's name * @param {string} location the function's location * @ret
Node/taskqueues-backup-images/functions/index.js:111
↓ 1 callersFunctiongetIdTokenFromRequest
* Returns a Promise with the Firebase ID Token if found in the Authorization or the __session cookie.
Node-1st-gen/template-handlebars/functions/firebaseUser.js:40
↓ 1 callersFunctiongetInactiveUsers
* * @param {admin.auth.UserRecord[]} [users] the current list of inactive users * @param {string} [nextPageToken] * @return {Promise<admin.auth.Use
Node/delete-unused-accounts-cron/functions/index.js:91
↓ 1 callersFunctiongetInactiveUsers
* Returns the list of all inactive users.
Node-1st-gen/delete-unused-accounts-cron/functions/index.js:70
↓ 1 callersFunctiongetLinkedInAccessToken
(code, clientId, clientSecret, redirectUri)
Node-1st-gen/linkedin-auth/functions/index.js:69
↓ 1 callersFunctiongetLinkedInUserProfile
(accessToken)
Node-1st-gen/linkedin-auth/functions/index.js:89
↓ 1 callersFunctionget_function_url
Get the URL of a given v2 cloud function. Params: name: the function's name location: the function's location Returns:
Python/post-signup-event/functions/main.py:127
↓ 1 callersFunctionget_function_url
Get the URL of a given v2 cloud function. Params: name: the function's name location: the function's location Returns: The U
Python/taskqueues-backup-images/functions/main.py:131
↓ 1 callersFunctionhandleCardAction
(payment, docId)
Node-1st-gen/stripe/public/javascript/app.js:308
↓ 1 callersFunctionhandleError
(username, error)
Node-1st-gen/username-password-auth/functions/index.js:41
↓ 1 callersFunctionimageMagickOutputToObject
* Convert the output of ImageMagick's `identify -verbose` command to a JavaScript Object.
Node-1st-gen/exif-images/functions/index.js:68
↓ 1 callersFunctionisShouting
* Detect if the current message is shouting. i.e. there are too many Uppercase * characters or exclamation points. * @param {string} message message
Node/quickstarts/callable-functions/functions/sanitizer.js:63
↓ 1 callersFunctionisShouting
(message)
Node-1st-gen/text-moderation/functions/index.js:76
↓ 1 callersFunctionis_inactive
(user: auth.UserRecord, inactive_limit: timedelta)
Python/delete-unused-accounts-cron/functions/main.py:46
↓ 1 callersFunctionis_suspicious
(ip_address)
Python/quickstarts/auth-blocking-functions/functions/main.py:130
↓ 1 callersFunctionlookupReporter
* Looks up Jira user ID. * @param {string} testerEmail Email address of tester who filed feedback
Node/app-distribution-feedback-to-jira/functions/index.js:141
↓ 1 callersFunctionmoderateMessage
(message)
Node-1st-gen/text-moderation/functions/index.js:48
↓ 1 callersFunctionmoderateSwearwords
(message)
Node-1st-gen/text-moderation/functions/index.js:70
↓ 1 callersFunctionownKeys
(o)
Node-1st-gen/vision-annotate-images/functions/lib/src/index.js:34
↓ 1 callersFunctionpostToSlack
* Posts a message to Slack via a Webhook * @param {string} title * @param {string} details * @return {Promise<string>}
Node/testlab-to-slack/functions/index.js:32
↓ 1 callersFunctionpostToSlack
* Posts a message to Slack via a Webhook * @param {string} title * @param {string} details * @return {Promise<string>}
Node-1st-gen/testlab-to-slack/functions/index.js:28
↓ 1 callersFunctionpostToSlack
* Post a message to Slack about the new GitHub commit.
Node-1st-gen/github-to-slack/functions/index.js:64
↓ 1 callersFunctionpost_to_slack
Posts a message to Slack via a Webhook.
Python/testlab-to-slack/functions/main.py:28
↓ 1 callersFunctionpromisifyCommand
(command)
Node-1st-gen/ffmpeg-convert-audio/functions/index.js:29
↓ 1 callersFunctionreformat_in_place
(files: list[str])
Python/pyfmt.py:28
↓ 1 callersFunctionrenderLevel
(minimumLevel, level, y, ctx)
Node-1st-gen/image-maker/functions/ray.js:24
↓ 1 callersFunctionreplaceSwearwords
* Hide all swearwords. e.g: Crap => ****. * @param {string} message * @return {string}
Node/quickstarts/callable-functions/functions/sanitizer.js:53
↓ 1 callersFunctionrtdb_and_local_fs_presence
()
Node-1st-gen/presence-firestore/public/index.js:66
↓ 1 callersFunctionsanitize_text
(text: str)
Python/quickstarts/callable-functions/functions/main.py:140
↓ 1 callersFunctionsearch
(query)
Node-1st-gen/fulltext-search-firestore/public/index.js:78
↓ 1 callersFunctionsearchAlgoliaAuthenticated
(query)
Node-1st-gen/fulltext-search-firestore/public/index.js:47
↓ 1 callersFunctionsearchAlgoliaUnauthenticated
(query)
Node-1st-gen/fulltext-search-firestore/public/index.js:27
↓ 1 callersFunctionsendCouponViaFCM
* Sends a coupon code via FCM to the given user. * * @param {string} uid The UID of the user. * @param {string} userLanguage The user language in l
Node-1st-gen/coupon-on-purchase/functions/index.js:50
↓ 1 callersFunctionsendGoodbyeEmail
(email, displayName)
Node-1st-gen/quickstarts/email-users/functions/index.js:92
↓ 1 callersFunctionsendHighValueCouponViaFCM
* Sends a high value coupon vode via FCM to the given user. * * @param {string} uid The UID of the user. * @param {string} userLanguage The user la
Node-1st-gen/coupon-on-purchase/functions/index.js:87
↓ 1 callersFunctionsendSurveyEmail
* Sends an email pointing to the Upgraded App survey.
Node-1st-gen/survey-app-update/functions/index.js:63
↓ 1 callersFunctionsendWelcomeEmail
(email, displayName)
Node-1st-gen/quickstarts/email-users/functions/index.js:77
↓ 1 callersFunctionsend_verification_email_using_your_smtp_server
(email, link)
Python/quickstarts/auth-blocking-functions/functions/main.py:91
↓ 1 callersFunctionshortenBitly
(url, token)
Node-1st-gen/url-shortener/functions/index.js:23
↓ 1 callersFunctionsliceIntoChunks
* Divide an array into chunks of `chunkSize` * @param {any[]} arr * @param {Number} chunkSize * @return {Array<Array<any>>}
Node/instrument-with-opentelemetry/functions/index.js:33
↓ 1 callersFunctionspark
(ctx, data, opts)
Node-1st-gen/image-maker/functions/sparkline.js:17
↓ 1 callersFunctionstartDataListeners
* Set up Firestore data listeners
Node-1st-gen/stripe/public/javascript/app.js:92
↓ 1 callersFunctionstopShouting
* Correctly capitalize the string as a sentence (e.g. uppercase after dots) * and remove exclamation ppints. * @param {string} message message to ca
Node/quickstarts/callable-functions/functions/sanitizer.js:74
↓ 1 callersFunctionstopShouting
(message)
Node-1st-gen/text-moderation/functions/index.js:82
↓ 1 callersFunctionuploadScreenshot
* Uploads screenshot to Jira (after downloading it from Firebase). * @param {string} issueUri URI of the Jira issue * @param {string} screenshotUri
Node/app-distribution-feedback-to-jira/functions/index.js:112
↓ 1 callersFunctionweatherForecastApi
* Gets the weather from the national weather service * https://www.weather.gov/documentation/services-web-api * * @param {number} lat * @param {nu
Node/quickstarts/callable-functions-streaming/functions/index.js:28
FunctionDemo
()
Node/fcm-notifications/public/main.js:19
FunctionDemo
()
Node-1st-gen/quickstarts/email-users/public/main.js:19
FunctionDemo
()
Node-1st-gen/spotify-auth/public/main.js:19
FunctionDemo
()
Node-1st-gen/authenticated-json-api/public/main.js:19
FunctionDemo
()
Node-1st-gen/fcm-notifications/public/main.js:19
FunctionDemo
()
Node-1st-gen/username-password-auth/public/main.js:26
next →1–100 of 169, ranked by callers