Disabled to get direct download link only from API

adam

Administrator
Staff member
Dec 5, 2009
2,008
97
48
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
23
1
3
29
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
YetiShare Supporter
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?