Lines:
1 to 76 of 76
<?php /** * Easy Digital Downloads API * * This class provides a front-facing JSON/XML API that makes it possible to * query data from the shop. * * The primary purpose of this class is for external sales / earnings tracking * systems, such as mobile. This class is also used in the EDD iOS App. * * @package EDD * @subpackage Classes/API * @copyright Copyright (c) 2015, Pippin Williamson * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.5 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /* class EDD_API */ /* function EDD_API::__construct() – Setup the EDD API */ /* function EDD_API::add_endpoint() – Registers a new rewrite endpoint for accessing the API */ /* function EDD_API::query_vars() – Registers query vars for API access */ /* function EDD_API::get_versions() – Retrieve the API versions */ /* function EDD_API::get_queried_version() – Retrieve the API version that was queried */ /* function EDD_API::get_default_version() – Retrieves the default version of the API to use */ /* function EDD_API::set_queried_version() – Sets the version of the API that was queried. */ /* function EDD_API::validate_request() – Validate the API request */ /* function EDD_API::is_public_query() – Return whether this is a public query. */ /* function EDD_API::get_user() – Retrieve the user ID based on the public key provided */ /* function EDD_API::get_user_public_key() – */ /* function EDD_API::get_user_secret_key() – */ /* function EDD_API::missing_auth() – Displays a missing authentication error if all the parameters aren’t provided */ /* function EDD_API::invalid_auth() – Displays an authentication failed error if the user failed to provide valid credentials */ /* function EDD_API::invalid_key() – Displays an invalid API key error if the API key provided couldn’t be validated */ /* function EDD_API::invalid_version() – Displays an invalid version error if the version number passed isn’t valid */ /* function EDD_API::process_query() – Listens for the API and then processes the API requests */ /* function EDD_API::get_query_mode() – Returns the API endpoint requested */ /* function EDD_API::set_query_mode() – Determines the kind of query requested and also ensure it is a valid query */ /* function EDD_API::get_paged() – Get page number */ /* function EDD_API::per_page() – Number of results to display per page */ /* function EDD_API::get_dates() – Sets up the dates used to retrieve earnings/sales */ /* function EDD_API::get_customers() – Process Get Customers API Request */ /* function EDD_API::get_products() – Process Get Products API Request */ /* function EDD_API::get_product_data() – Given a download post object, generate the data for the API output */ /* function EDD_API::get_stats() – Process Get Stats API Request */ /* function EDD_API::get_recent_sales() – Retrieves Recent Sales */ /* function EDD_API::get_discounts() – Process Get Discounts API Request */ /* function EDD_API::get_download_logs() – Process Get Downloads API Request to retrieve download logs */ /* function EDD_API::get_info() – Process Get Info API Request */ /* function EDD_API::get_output_format() – Retrieve the output format */ /* function EDD_API::log_request() – Log each API request, if enabled */ /* function EDD_API::get_output() – Retrieve the output data */ /* function EDD_API::output() – Output Query in either JSON/XML. The query data is outputted as JSON by default */ /* function EDD_API::user_key_field() – Modify User Profile */ /* function EDD_API::process_api_key() – Process an API key generation/revocation */ /* function EDD_API::generate_api_key() – Generate new API keys for a user */ /* function EDD_API::revoke_api_key() – Revoke a users API keys */ /* function EDD_API::get_version() – */ /* function EDD_API::update_key() – Generate and Save API key */ /* function EDD_API::generate_public_key() – Generate the public key for a user */ /* function EDD_API::generate_private_key() – Generate the secret key for a user */ /* function EDD_API::get_token() – Retrieve the user’s token */ /* function EDD_API::get_default_sales_stats() – Generate the default sales stats returned by the ‘stats’ endpoint */ /* function EDD_API::get_default_earnings_stats() – Generate the default earnings stats returned by the ‘stats’ endpoint */ /* function EDD_API::api_key_backwards_copmat() – A Backwards Compatibility call for the change of meta_key/value for users API Keys */ /* function EDD_API::sanitize_request_term() – Sanitizes category and tag terms */ /* function EDD_API::log_requests() – Disable request logging */ /* function EDD_API::check_keys() – Check API keys vs token */