Disabled to get direct download link only from API

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Hi,

It's not currently an option, you'd need to remove or disable the API code.

Thanks,
Adam.
 

vnxbug

New Member
YetiShare User
Jun 25, 2018
25
1
3
33
I want it urgently.
Can you please advise me which API code need to be edited?

Thank you
Very easy, if you need to hide your direct download link in API :

Edit file ApiFile.class.php (in /app/services/api/v2/endpoint), go to line 246, change this code :
Search :
PHP:
 'download_url' => $downloadUrl
Replace to
PHP:
//'download_url' => $downloadUrl
Save and test it again ! Good luck !
 

soliddrive.co

New Member
YetiShare User
Jul 9, 2018
12
2
3
soliddrive.co
Very easy, if you need to hide your direct download link in API :

Edit file ApiFile.class.php (in /app/services/api/v2/endpoint), go to line 246, change this code :
Search :
PHP:
 'download_url' => $downloadUrl
Replace to
PHP:
//'download_url' => $downloadUrl
Save and test it again ! Good luck !
Thank you. I will try.
Also do you know how to show API documentation page for public not only in admin area?