Skip to Content Skip to Menu

uddeIM.api.php

  • G0G0
  • G0G0
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
15 years 2 months ago #107959 by G0G0
uddeIM.api.php was created by G0G0
Hello,
I would like to know how is used the uddeIM.api.php?
Thank you

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 2 months ago #108133 by slabbi
Replied by slabbi on topic Re:uddeIM.api.php
There is a short README that explains how to include the file:

[code:1]uddeim.api.php
================================================================
This is an experimental interface for providing
udde Intstant Messages to 3rd party components.

This file declares a class uddeIMAPI that provides following
functions:

Create an instance
require_once("uddeim.api"«»);
$uddeim = new uddeIMAPI();

bool $uddeim->isInboxLimitReached($userid);
-> userid
<- true if the Inbox limit has been reached.

void $uddeim->sendNewMessage($fromid, $toid, $message,
$sendnotification=0, $updatelastsent=0);
-> fromid
-> toid
-> message
-> sendnotifications
-> updatelastsent
<- void

Special features supported:
- autoforward

Special features not supported:
- copy2me
- autoresponder
[/code:1]

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • G0G0
  • G0G0
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
15 years 1 month ago #109079 by G0G0
Replied by G0G0 on topic Re:uddeIM.api.php
This explain is to short for me, do you have a small example ?
Just for send a message with an another composant
Thank

Post edited by: G0G0, at: 2009/08/24 15:54

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 1 month ago #109080 by slabbi
Replied by slabbi on topic Re:uddeIM.api.php
[code:1]require_once("uddeim.api"«»);
$uddeim = new uddeIMAPI();
if (!$uddeim->isInboxLimitReached($toid))
$uddeim->sendNewMessage($fromid, $toid, $message,
1, 1);[/code:1]

Post edited by: slabbi, at: 2009/08/24 15:56

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum