engineer connecting cables
# CURL Usage Documentation This documentation provides a comprehensive guide to using the `AIClient` class and making API requests using `curl`. ## Authentication ### Login ```sh curl -X POST https://api.programmers4u.com/auth/login \ -H "Content-Type: application/json" \ -d '{"username": "your_username", "password": "your_password"}' ``` ## Tasks ### List Tasks ```sh curl -X GET https://api.programmers4u.com/products/tasks \ -H "Authorization: Bearer your_access_token" ``` ### Run Task ```sh curl -X POST https://api.programmers4u.com/products/tasks/query \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_access_token" \ -d '{ "idTask": "52468971-a06e-413d-9b3a-212b53aad693", "ask": "Your task description here.", "context": " " }' ``` ### Create Task ```sh curl -X PUT https://api.programmers4u.com/products/tasks \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_access_token" \ -d '{ "name": "Task Name", "context": "Task Context", "model": "Model Name", "instruction": "Task Instructions" }' ``` ### Delete Task ```sh curl -X DELETE https://api.programmers4u.com/products/tasks/52468971-a06e-413d-9b3a-212b53aad693 \ -H "Authorization: Bearer your_access_token" ``` ### Ping API ```sh curl -X GET https://api.programmers4u.com/ping ``` [#documentation](https://app.apihub4ai.com/doc/api-curl), [#curl](https://app.apihub4ai.com/doc/api-curl), [#authentication](https://app.apihub4ai.com/doc/api-curl), [#tasks](https://app.apihub4ai.com/doc/api-curl), [#api](https://app.apihub4ai.com/doc/api-curl)

share:

FAQ

To log in using curl, use the following command: curl -X POST https://api.programmers4u.com/auth/login \ -H "Content-Type: application/json" \ -d '{"username": "your_username", "password": "your_password"}'
To display tasks using curl, use the following command: curl -X GET https://api.programmers4u.com/products/tasks \ -H "Authorization: Bearer your_access_token"
To execute a task using curl, use the following command: curl -X POST https://api.programmers4u.com/products/tasks/query \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_access_token" \ -d '{ "idTask": "52468971-a06e-413d-9b3a-212b53aad693", "ask": "Description of your task.", "context": " " }'
To create a task using curl, use the following command: curl -X PUT https://api.programmers4u.com/products/tasks \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_access_token" \ -d '{ "name": "Task Name", "context": "Task Context", "model": "Model Name", "instruction": "Task Instructions" }'
To delete a task using curl, use the following command: curl -X DELETE https://api.programmers4u.com/products/tasks/52468971-a06e-413d-9b3a-212b53aad693 \ -H "Authorization: Bearer your_access_token"
To ping the API using curl, use the following command: curl -X GET https://api.programmers4u.com/ping

Cookie Settings

We use cookies to manage the Services and to collect information about you and your use of the Services. Cookies help us to recognize you, customize or personalize your experience, market additional products or services to you, and analyze the use of our Services to make it more useful to you. Cookies may also allow us to collect demographic and statistical data and provide this information to our service providers to help deliver their services.

more
APIHUB4AI
2024 Programmers4u ©️ All rights reserved
Let's talk on Discord
discord icon