EDD_API
EDD_API Class
Description Description
Renders API returns as a JSON/XML array
Source Source
File: includes/class-edd-api.php
Changelog Changelog
Version | Description |
---|---|
1.5 | Introduced. |
Methods Methods
- __construct — Setup the EDD API
- add_endpoint — Registers a new rewrite endpoint for accessing the API
- api_key_backwards_copmat — A Backwards Compatibility call for the change of meta_key/value for users API Keys
- check_keys — Check API keys vs token
- generate_api_key — Generate new API keys for a user
- generate_private_key — Generate the secret key for a user
- generate_public_key — Generate the public key for a user
- get_customers — Process Get Customers API Request
- get_dates — Sets up the dates used to retrieve earnings/sales
- get_default_earnings_stats — Generate the default earnings stats returned by the 'stats' endpoint
- get_default_sales_stats — Generate the default sales stats returned by the 'stats' endpoint
- get_default_version — Retrieves the default version of the API to use
- get_discounts — Process Get Discounts API Request
- get_download_logs — Process Get Downloads API Request to retrieve download logs
- get_info — Process Get Info API Request
- get_output — Retrieve the output data
- get_output_format — Retrieve the output format
- get_paged — Get page number
- get_product_data — Given a download post object, generate the data for the API output
- get_products — Process Get Products API Request
- get_queried_version — Retrieve the API version that was queried
- get_query_mode — Determines the kind of query requested and also ensure it is a valid query
- get_recent_sales — Retrieves Recent Sales
- get_stats — Process Get Stats API Request
- get_token — Retrieve the user's token
- get_user — Retrieve the user ID based on the public key provided
- get_user_public_key
- get_user_secret_key
- get_version
- get_versions — Retrieve the API versions
- invalid_auth — Displays an authentication failed error if the user failed to provide valid credentials
- invalid_key — Displays an invalid API key error if the API key provided couldn't be validated
- invalid_version — Displays an invalid version error if the version number passed isn't valid
- is_public_query — Return whether this is a public query.
- log_request — Log each API request, if enabled
- log_requests — Disable request logging
- missing_auth — Displays a missing authentication error if all the parameters aren't provided
- output — Output Query in either JSON/XML. The query data is outputted as JSON by default
- per_page — Number of results to display per page
- process_api_key — Process an API key generation/revocation
- process_query — Listens for the API and then processes the API requests
- query_vars — Registers query vars for API access
- revoke_api_key — Revoke a users API keys
- sanitize_request_term — Sanitizes category and tag terms
- set_queried_version — Sets the version of the API that was queried.
- set_query_mode — Determines the kind of query requested and also ensure it is a valid query
- update_key — Generate and Save API key
- user_key_field — Modify User Profile
- validate_request — Validate the API request