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
const express = require("express"); | |
const axios = require("axios"); | |
const app = express(); | |
app.use(express.json()); | |
const APP_ID = process.env.APP_ID; | |
const API_TOKEN = process.env.API_TOKEN; | |
const SENDBIRDDESKAPITOKEN = process.env.SENDBIRDDESKAPITOKEN | |
// SendBird API Base URL |
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
sb.GroupChannel.getChannel(CHANNEL_URL, function(groupChannel, error) { | |
if (error) {} | |
groupChannel.markAsRead() | |
}); |
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
// | |
// ViewController.swift | |
// sendbird_channel_change | |
// | |
// Created by Jason.Allshorn on 08/06/2021. | |
// | |
import UIKit | |
import SendBirdSDK |
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
package com.simple.android_push_replies_only.fcm; | |
import android.app.Notification; | |
import android.app.NotificationChannel; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.os.Build; |
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
const express = require('express'); | |
const axios = require("axios"); | |
const sf = require('node-salesforce'); | |
const app = express(); | |
app.use(express.json()) | |
const port = process.env.PORT || 3000; |
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
<aura:component implements="flexipage:availableForAllPageTypes" access="global" > | |
<lightning:utilityBarAPI aura:id="utilitybar" /> | |
<aura:attribute name="recordId" type="String" /> | |
<aura:attribute name="data" type="String" /> | |
<lightning:navigation aura:id="navService" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit } " /> | |
<lightning:container | |
aura:id="SendBird_Bar" | |
src="{!$Resource.sendbird_bar + '/index.html'}" | |
onmessage="{!c.handleMessage}" |
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
// | |
// AlertManager.swift | |
// uikitsimple | |
// | |
// Copyright © 2020 SendBird, Inc. All rights reserved. | |
// | |
import UIKit | |
// This function handles alertController to be used in the sample app. |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>React App</title> | |
</head> | |
<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
class SearchUsers { | |
constructor(sb) { | |
this.sb = sb; | |
this.lookupDictionary = {}; | |
this.userDictionary = {}; | |
} | |
addQueryUsersToDictionary(users, searchTerm) { | |
if (users.length === 0) { | |
this.lookupDictionary[searchTerm] = {}; |
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
class SearchMembers { | |
constructor(channel) { | |
this.targetChannel = channel; | |
this.dictionary = {}; | |
} | |
addQueryUsersToDictionary(users, searchTerm) { | |
if (users.length === 0) { | |
this.dictionary[searchTerm] = {}; | |
return; |
NewerOlder