Old ShiftCode Wiki Documentation

A WORK IN PROGRESS TO BE CONTINUED

 

 

Personal tools
Namespaces
Variants
    Views
    Actions
      Search

      Navigation
      Toolbox
      • This page was last modified on 24 January 2012, at 06:07.
      • This page has been accessed 239 times.
      • Powered by MediaWiki

      Retrieved from a 2012 version of “http://shiftcode.com/wiki/API” no longer live online:

      API

      From ShiftCode

      Jump to: navigation, search

      The API product allows you to easily build your own custom applications on your own server.

      You can download the latest PHP classes here: [1]

      Functions

      Name
      Function
      Multiple Support

      Jackpot – Add Entries
      JackpotAdd
      no

      Paid to Signup – Load Ad
      PtsLoad
      no

      Shoutbox – Post
      ShoutboxPost
      no

      User – Balances
      UserBalances
      no

      User – Load
      UserLoad
      no

      User – Login
      UserLogin
      no

      User – Register
      UserRegister
      no

      User – Cash Transaction
      UserTransCash
      YES

      User – Points Transaction
      UserTransPoints
      YES

      Additional Options

      Template Variables

      If you wish to include stats from your own server, you can include them in your template by creating an XML file on your server formatted like the one below.

      <?xml version="1.0"?>
      <template>
      	<stat1>234</stat1>
      	<stat2>865.23</stat2>
      </template>
      

      You can pass a user’s id to your XML file like so:
      http://example.com/template.php?uid={~$user.id~}

      The stats can be displayed in your template by using the following code:

      Stat 1: {~$api->template('stat1')~}
      Stat 2: {~$api->template('stat2')~}


      Personal tools
      Namespaces
      Variants
        Views
        Actions
          Search

          Navigation
          Toolbox
          • This page was last modified on 24 January 2012, at 06:07.
          • This page has been accessed 239 times.
          • Powered by MediaWiki