@extends($activeTemplate . 'layouts.master') @section('content')
@lang('Overview')

@lang('Using the ') {{ __(gs('site_name')) }} @lang('API is pretty simple. You can easily confirm product purchases by users with our straightforward integration. Our API is designed for seamless implementation into any web & mobile application, supporting both GET and POST requests while providing responses in JSON format. Remember, URLs are case-sensitive for accurate interaction.')

@lang('API key')
@if ($apiKey)

@lang('Get your API key from the below. The API key is used to authenticate the request and determine whether the request is valid or not. If you want to regenerate the API key from the below sync icon.')

@else

@lang('The API key is used to authenticate the request and determine whether the request is valid or not. If you want to generate the API key from the below generate button.')

@lang("You don't have any API keys. Generate your API key by clicking below the Generate button")

@endif
@lang('Get All Products')

@lang('Retrieves all products associated with the provided username')

@lang('Endpoint')
@lang('GET') {{ route('api.author.products.all') }}
@lang('Parameters')
  • @lang('username ') @lang('The username of the user to retrieve all products') @lang('(Required)')
@lang('Responses')
@lang('Success Responses')
                                    
{
    "remark": "author_products",
    "status": "success",
    "message": {
        "success": [
            "Author products fetched successfully"
        ]
    },
    "data": {
        "products": [
            {
                "id": 4,
                "user_id": 2,
                "assigned_to": 2,
                "category_id": 2,
                "sub_category_id": 3,
                "title": "CryptoCom - Flutter App",
                "slug": "cryptocom-crypto-based-ecommerce-shopping-platform-58311",
                "price": "100.00000000",
                "price_cl": "150.00000000",
                "thumbnail": "67b9b036383011740222518.png",
                "approved_by": 2,
                "demo_url": "https://script.viserlab.com/cryptocom/",
                "preview_video": "67c2c6439805e1740817987.mp4",
                "attribute_info": [],
                "preview_image": "67b9b0363e1241740222518.png",
                "inline_preview_image": "67b9b03658d991740222518.png",
                "total_sold": 3,
                "total_review": 0,
                "avg_rating": "0.00",
                "description": "Looking for a crypto-based E-commerce system for your business, then you are in the right place. No need to pay any extra money, no hidden charges, no need to wait, no need to hire developers or designers. just purchase and install CryptoCom, your shopping e-commerce website will be ready within the next 5 minutes. Our system can handle unlimited users, orders, services, categories, digital items, traditional items, able to accept payment via over 5000 altcoins, bitcoin, doge, ripple, and ethereum. the complete ready-to-go solution, we also here to provide you best support, installation, and customization if you need it. hurry up, get your copy and start your E-commerce website. We Add GDPR popups, advertisements, and almost all services on it for better performance and acceptance.",
                "changelog": null,
                "is_free": 0,
                "comment_disable": 0,
                "is_featured": 0,
                "tags": [
                    "crypto",
                    "flutter",
                    "app",
                    "codeplus"
                ],
                "status": 1,
                "file": "67b9b03636b891740222518.zip",
                "temp_file": null,
                "product_updated": 0,
                "published_at": "2025-02-22 11:09:27",
                "last_updated": null,
                "created_at": "2025-02-22T11:08:38.000000Z",
                "updated_at": "2025-02-26T10:17:30.000000Z"
            }
            {
                - - - - - - - - - - - - - - - - - - - -
            }
        ]
    }
}
                                    
                                
@lang('Error Responses')
                                    
{
    "remark": "validation_error",
    "status": "error",
    "message": {
        "error": [
            "The selected username is invalid."
        ]
    }
}
                                    
                                
@lang('Get A Product Details')

@lang('Retrieves a product details associated with the provided product id')

@lang('Endpoint')
@lang('GET') {{ route('api.author.products.detail') }}
@lang('Parameters')
  • @lang('product_id') @lang('The product id to get the specific product details') (Required)
@lang('Responses')
@lang('Success Responses')
                                    
{
    "remark": "product_detail",
    "status": "success",
    "message": {
        "success": [
            "Product fetched successfully"
        ]
    },
    "data": {
        "image_path": "assets/files/product",
        "thumbnail": "assets/files/product",
        "video_preview": "assets/files/product",
        "product": {
            "id": 1,
            "user_id": 1,
            "assigned_to": 2,
            "category_id": 1,
            "sub_category_id": 1,
            "title": "PromptLab",
            "slug": "promptlab-02741",
            "price": "30.00000000",
            "price_cl": "60.00000000",
            "thumbnail": "67b98e50782b61740213840.png",
            "approved_by": 2,
            "demo_url": "https://script.viserlab.com/promptlab/",
            "preview_video": "Hi-Tech Intro.mp4",
            "attribute_info": [],
            "preview_image": "67b98e507e0381740213840.png",
            "inline_preview_image": "67b98e50a303d1740213840.png",
            "total_sold": 1,
            "total_review": 0,
            "avg_rating": "0.00",
            "description": "PromptLab Is an AI Prompt Marketplace application designed to enhance the management of your prompt business. It provides administrators with essential tools to oversee prompt submissions, user activities, and financial transactions. The application features flexible commission settings, a wide range of payment gateways, and support for multiple languages to reach a global audience.

Additionally, it offers detailed reporting and analytics to help you monitor performance, track sales, and understand user behavior. The intuitive admin panel allows for easy customization and efficient handling of marketplace operations. With our application, you can ensure smooth management, optimize revenue streams, and deliver a high-quality experience to both buyers and sellers. Choose our solution to effectively run and grow your prompt marketplace. It’s easily installable, and controllable through the admin panel, and comes with a responsive design, high security, interactive User interface. support plugins, LiveChat, Google ReCaptcha, analytics, automatic payment gateway, cards, currencies, and cryptos. we are also here to provide you with the best support, installation, and customization if you need it.", "changelog": null, "is_free": 0, "comment_disable": 0, "is_featured": 1, "tags": [ "promptlab", "codeplus", "viserlab", "php", "script" ], "status": 1, "file": "67b98e5076aed1740213840.zip", "temp_file": null, "product_updated": 0, "published_at": "2025-02-22 08:53:01", "last_updated": null, "created_at": "2025-02-22T08:44:02.000000Z", "updated_at": "2025-02-23T11:43:18.000000Z" } } }
@lang('Error Responses')
                                    
{
    "remark": "not_found",
    "status": "error",
    "message": {
        "error": [
            "Product not found"
        ]
    }
}
                                    
                                
@lang('Purchase Validation')

@lang('Retrieves all items associated with the provided API key')

@lang('Endpoint')
@lang('POST') {{ route('api.purchase.code.verify') }}
@lang('Header')
  • @lang('apikey') @lang('Your API key') @lang('(Required)')
@lang('Parameters')
  • @lang('purchase_code') @lang('Provide a valid purchase code to verify') @lang('(Required)')
@lang('Responses')
@lang('Success Responses')
                                    
{
    "status": "success",
    "status_code": "200",
    "message": {
        "success": [
            "Purchase code matched"
        ]
    }
}
                                    
                                
@lang('Error Responses')
                                    
{
    "status": "error",
    "status_code": 422,
    "message": [
        "error" : [
            "The purchase code field is required.",
            "The selected purchase code is invalid.",
        ]
    ]
}
                                    
                                
@endsection @push('script-lib') @endpush @push('script') @endpush @push('style-lib') @endpush @push('style') @endpush