Skip to content
site logo mobile

Forum in maintenance, we will back soon 🙂

Hosting fast API on...
 
Notifications
Clear all

Hosting fast API on VPS server

22 Posts
4 Users
2 Reactions
120 Views
Hasan Aboul Hasan
(@admin)
Posts: 1119
Member Admin
 

This means that the URL is wrong.

there is a dropdown on top, you need to select your URL. 

if it is not there, you need to add it first in the API template in the main.py

 
Posted : 05/26/2024 8:13 am
dimu
 dimu
(@dassa)
Posts: 87
Member
Topic starter
 

Thank you Mr.Hasan. working.

 
Posted : 05/27/2024 4:10 am
SSAdvisor
(@ssadvisor)
Posts: 1087
Noble Member
 

@dassa look at the info from this search: https://learnwithhasan.com/premium-forum/?wpfs=cors

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 05/27/2024 7:54 pm
dimu
 dimu
(@dassa)
Posts: 87
Member
Topic starter
 

Everything working perfectly. 

Screenshot 2

but points were not deducted. and also the tool works without points too. cannot figure out why.

 

 
Posted : 06/03/2024 6:24 am
(@husein)
Posts: 354
Member Moderator
 

@dassa Attach your php code snippet please so we can take a look at it, maybe you didn't add the function that detects points. 

And are you sure you setup the mycred system and points correctly?

 
Posted : 06/03/2024 12:48 pm
dimu
 dimu
(@dassa)
Posts: 87
Member
Topic starter
 

@husein

those are the 2 tools i have created.

// Bulk Domain Name Generator
$domainnamegenaratorToolConfig = [
    'ENABLE_LOGGING' => false,
    'CUSTOM_TOOL_ID' => 1,
    'AUTH_REQUIRED' => false,
    'POINTS_REQUIRED' => 8,
    'ENDPOINT_PATH' => '/domain_name_generator',
    'TOOL_NAME' => "Bulk Domain Name Generator",
    'EXPECTED_PARAMS' => [
        'niche' => [
            'type' => 'string',
            'error_message' => 'Niche not provided.'
        ]
    ]
];

custom_lws_tool_setup('bulk_Domain_name_generator', $domainnamegenaratorToolConfig);


// Hook Generator
$HookgenaratorToolConfig = [
    'ENABLE_LOGGING' => false,
    'CUSTOM_TOOL_ID' => 2,
    'AUTH_REQUIRED' => false,
    'POINTS_REQUIRED' => 5,
    'ENDPOINT_PATH' => '/hooks/generate',
    'TOOL_NAME' => "Hook Generator",
    'EXPECTED_PARAMS' => [
        'topic' => [
            'type' => 'string',
            'error_message' => 'topic not provided.'
        ],
        'usage' => [
            'type' => 'string',
            'regex' => '/^[A-Z]{2}$/',
            'default' => 'DEFAULT',
            'error_message' => 'usage not provided.'
        ]
    ]
];

custom_lws_tool_setup('hook_generator', $HookgenaratorToolConfig);
 
Posted : 06/04/2024 5:54 am
Hasan Aboul Hasan
(@admin)
Posts: 1119
Member Admin
 

you should set 'AUTH_REQUIRED' => true,

 
Posted : 06/04/2024 10:38 am
Page 2 / 2
Share: