PHP
Quickstart
Official Tinq.ai PHP SDK.
Installation & Usage
Requirements
PHP ^8.0.2
Composer
To install the bindings via Composer, add the following to composer.json
:
Then run composer install
Manual Installation
Download the files and include autoload.php
:
Getting Started
Please follow the installation procedure and then run the following:
API Endpoints
All URIs are relative to https://tinq.ai/api/v2
Class | Method | HTTP request | Description |
---|---|---|---|
Assistant | generate | POST /assistant | Generate |
Classifiers | classifiers | GET /classifiers | Classifiers |
Classifiers | classify | POST /classify | Classify |
Classifiers | sentimentAnalysis | POST /sentiment-analysis | Sentiment Analysis |
PlagiarismChecker | checkPlagiarism | POST /check-plagiarism | Check Plagiarism |
Projects | createProject | POST /projects | Create Project |
Projects | getAllProjects | GET /projects/ | Get All Projects |
Projects | getProject | GET /projects/ | Get Project |
Projects | updateProject | PUT /projects/ | Update Project |
Scraper | extractArticle | POST /scraper/extract-article | Extract article |
Scraper | googleSearch | POST /scraper/google | Google Search |
Scraper | scrape | POST /scraper/scrape | Scrape |
Tools | extractTextFromFile | POST /extract-text | Extract text from file |
Tools | extractUrl | POST /extract-article | Extract URL |
Workflows | createWorkflow | POST /workflows | Create workflow |
Workflows | executeWorkflow | POST /workflows//execute | Execute workflow |
Workflows | getOneWorkflow | GET /workflows/ | Get one workflow |
Workflows | getWorkflows | GET /workflows | Get workflows |
Models
Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication
Tests
To run the tests, use:
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
v2
- Package version:
0.0.59
- Generator version:
7.9.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen