Skip to content

codefen/intelx-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Intelx-php is an implementation of the IntelX API into a PHP.

Setup Instructions

Prerequisites

Installation

  1. Clone the repository or download the source code
git clone https://github.com/codefen/intelx-php
  1. Place the project folder in your web server's root directory (e.g., htdocs for XAMPP).

  2. Start your web server (Apache, Nginx, etc.).

  3. Open the project by navigating to http://localhost/intelx-php in your web browser.

Configuration

In order to use the application you must need to set the API Key from IntelX in the env variable

API Routes

/index.php

Request Parameters

  • model: Specifies the handler to use. Current implementation supports 'inx'.
  • ac: Action to perform. Available actions: 'init_search', 'search', 'preview', 'read'.
  • Additional parameters depending on the action (term, id, offset, etc.).

Handlers

  • INX Handler: Interacts with IntelX API, performing search operations and handling data retrieval.

Route Details

  1. Init Search (ac=init_search):

    • Initiates a search query.
    • Parameters: term (search term).
  2. Search (ac=search):

    • Performs a search based on the given ID.
    • Parameters: id (search ID), offset (pagination offset).
  3. Preview (ac=preview):

    • Retrieves a preview of a file.
    • Parameters: sid (storage ID), mid (media ID), bid (bucket ID).
  4. Read (ac=read):

    • Retrieves the full view of a file.
    • Parameters: sid (storage ID), bid (bucket ID).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages