SendingNetwork
  • OVERVIEW
    • Getting Started
    • FAQs
  • Network Instructional Articles
    • Basics
      • Introducing the Edge, WatchDog, and Guardian Nodes
      • Overview
      • Messaging Solution
      • Privacy Solution
      • Rich Communication Solution
      • Multi-Platform Solution
      • Decentralized Identity
      • Multiple Chat Modes
      • How It Works
      • Token Utility
      • The Team
    • Key Concepts
      • Decentralized Identity
      • Social Graphs
      • Edge Node
  • SDK Documentation
    • Glossary
    • JavaScript client SDK
      • DID
      • User
      • Message
      • Room
      • Contact
      • Social Graph
    • iOS client SDK
      • Push
      • DID
      • User
      • Message
      • Room
      • Contact
    • Android client SDK
      • User
      • Room
    • Java SDK
      • DID
      • Room
      • Message
    • Node.js SDK
      • DID
      • Room
      • Message
    • Unreal SDK
      • DID
      • User
      • Message
      • Room
    • Unity SDK
      • DID
      • Room
      • Message
    • Website chat widget SDK
      • Customization
      • DID
      • User
      • Room
      • Message
      • Other
    • Bot SDKs
      • Golang Bot SDK
        • DID
        • User
        • Room
        • Message
    • Extensible Message Interface
    • Push Notifications
    • Flutter SDK
      • DID
      • User
      • Message
      • Room
    • PHP SDK
      • DID
      • Room
      • User
    • Developer Key
  • Acquisition Kit
    • Social Boost Development Instructions
  • WatchDog Agent
    • WatchDog Agent Guide
    • WatchDog Agent Deployment Tutorial
      • Linux Deployment Tutorial
    • One-Click Deployment
  • Edge Node
    • Edge Node Deployment Tutorial
    • VPS Setup Guide
      • Google Cloud Platform (GCP)
      • Amazon Web Services (AWS)
      • Contabo
    • Check Node Stats with Auto-Reply Bot in SendingMe App
    • Alpha-3 Testnet FAQs
  • delegation node
    • Delegation Node Deployment Tutorial
  • Private Delegation Node
  • Use Cases
    • Wallet-to-Wallet Messaging
    • Dapp Notifications
    • Identity Verification
    • Gamer Acquisition
    • Cross-platform Trading
Powered by GitBook
On this page
  • Create Room
  • Join Room
  • Get Room Object
  • Invite User
  • Kick User
  • Leave Room
  • Get Room Memebers
  • Send Message
  1. SDK Documentation
  2. PHP SDK

Room

Create Room

function createRoom(string $name, bool $isPublic = false, array $invitees = [])

Parameters:

Name
Type
Description
Required

name

string

room name

true

isPublic

string

public or private

false

invitees

string array

array of user ids to invite

false

Returns:

Name
Type
Description
Required

room

Room

Room Object

true

Join Room

function joinRoom(string $roomIdOrAlias)

Parameters:

Name
Type
Description
Required

roomIdOrAlias

string

room id or alias

true

Returns:

Name
Type
Description
Required

room

Room

Room Object

true

Get Room Object

function getRoom(string $roomId)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns:

Name
Type
Description
Required

room

Room

Room Object

true

Invite User

function inviteUser(string $userId)

Parameters:

Name
Type
Description
Required

userId

string

user id

true

Returns: none

Kick User

function kickUser(string $userId)

Parameters:

Name
Type
Description
Required

userId

string

user id

true

Returns: none

Leave Room

function leave()

input params:none

Returns: none

Get Room Memebers

 function getJoinedMembers()

Parameters: none

Returns:

Name
Type
Description
Required

roomMemberInfo

array of members

room member info

true

Send Message

function sendText(string $text)

Parameters:

Name
Type
Description
Required

text

string

message to send

true

Returns:

Name
Type
Description
Required

eventId

string

event id

true

PreviousDIDNextUser

Last updated 1 year ago