an
groups-icon

Sending Gift API

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    Robert Ketibian
    0 points
    Beginner

    Hello,

    I am using avchat and it has a sending gifts button which integrates with a gift sending API.
    How can i get the API from the sendgift (avchat) to use premiumpress’s sending gift functionality?

    Here is the php code from avchat’s sendgift;

    <?php
    //By default AVChat 3 will send to this PHP file the following variables
    $_GET[“destinationSiteId”];
    $_GET[“destinationUsername”];
    $_GET[“senderSiteId”];
    $_GET[“senderUsername”];
    //sendgift.php?destinationSiteId=abc&destinationUsername=Nike&senderSiteId=123senderUsername=Nike
    ?>
    <html>
    <head>
    <title>Send a gift to
    <?echo $_GET[“destinationUsername”]?>
    </title>
    <style type=”text/css”>
    body
    {
    background-color:#ffffff;
    font-family:Arial,Verdana,”Times New Roman”,Georgia,Serif;
    }

    #maincontainer{
    border: 1px dashed;
    padding:5%;
    margin:5%;
    width:80%;
    height:70%
    }
    </style>
    </head>
    <body >
    <div id=”maincontainer”>
    <p><?php echo $_GET[“senderUsername”]?>, send a gift to <?php echo $_GET[“destinationUsername”]?>!</p>
    <p>Use the Gifts API to plug into your existing gifts system!</p>

    </div>

    </body>
    </html>

    March 16, 2017 at 12:32 pm
  • Robert Ketibian
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    March 16, 2017 at 12:33 pm

346

Views

1

Replies