Confetti Bits

cb-ajax-transactions.php

Table of Contents

Functions

cb_ajax_get_transactions()  : JSON
CB AJAX Get Transactions
cb_ajax_new_transactions()  : mixed
CB AJAX New Transactions

Functions

cb_ajax_get_transactions()

CB AJAX Get Transactions

cb_ajax_get_transactions() : JSON

Gets transactions for a user based on the user_id passed in the $_GET array.

Tags
since
2.3.0
Return values
JSON

{ 'text': JSON (JSON encoded array of transactions, or error message), 'type': string (success or error) }

cb_ajax_new_transactions()

CB AJAX New Transactions

cb_ajax_new_transactions() : mixed

AJAX handler for creating transactions.

All parameters are passed via POST request.

The following parameters are required:

  • sender_id (int) - The ID of the user sending the bits.
  • recipient_id (int) - The ID of the user receiving the bits.
  • amount (int) - The amount of bits to send.
  • log_entry (string) - The log entry to record for this transaction.
Tags
since
2.3.0

        
On this page

Search results