| Tools & API's |
Here follows the API description. To check links and its files for their online-state click here: Link-Checker
Description
With MegaFile's "Link-Checker - API" the user gets an easy and comfortable way to represent the current online-state of a file in a forum, a blog or at the users own website. The API can handle a couple of parameters in order for the user to adjust the appearance of the response. Usage of the API MegaFile's API usually gets called directly from within the browser either as AJAX-Request or direct call or by being embedded via HTML-Code from a website or via BB-code embedded in a forum. The basic structure of the API does look like this: https://megafile.biz/API/link_checker/"Link to File"/
"Link to File" has to get replaced with the unique link to the file. You can also let these links get generated from within the Filemanager, this will be alot easier and more comfortable for some users. Does this link gets called in the browser just like this, there will be shown a simple graphic which represents the online-state of the requested file.
When you do use the basic structure a PNG-graphic will get replied, this graphic can get embedded via HTML-Code on the users desired website: <img src="https://megafile.biz/API/link_checker/"Link to File"/">
A forum, most likely, will allow the user to use BB-code rather than HTML-code, so here is a sample for the BB-code: [IMG]https://megafile.biz/API/link_checker/"Link to File"/[/IMG]
In order to adjust the output of the response, our API needs a couple defined parameters. These parameters are getting to use as followed: https://megafile.biz/API/link_checker/"Link to File"/?parameter=value
When using multiple parameters, they have to get split apart as followed: https://megafile.biz/API/link_checker/"Link to File"/?parameter=value¶meter=value
Now following the meaning and values of the defined parameters gets listed:
Usage Guidelines of the API The API can be used by anyone for free. All parameter the user can define has to be given correct and as expected. In case some given values are not correct the parameter will get thrown away and the default value will get used. In case of any massively requesting of wrong or suspicious looking parameters the account of the requesting user might get blocked from requesting further API-calls! |
||||||||||||||||||
Here follows the API to embed file downloads on other sites, to check links now click here: Link-checker
Description
With MegaFile's "Embedded downloads - API" the user is allowed to comfortly embed MegaFile's download page directly within a forum post, within an entry of his blog or on his website. Also take a note that there will no advertisements being shown on it! Usage of the API MegaFile's API usually gets embedded via HTML-code or BB-code. To be able to call our API from the site, the code has to be embedded within it. The basic structure of the API looks like this: https://megafile.biz/file/"Link to File"/embed/
"Link to File" has to get replaced with the unique link to the file. You can also let these links get generated from within the filemanager, this will be alot easier and more comfortable for some users. Embedding with HTML-code Now this link has to get embedded within the page, with HTML this would look like this: <iframe src="https://megafile.biz/file/"Link to File"/embed/Parameter1/"Instead of HTML-attributes you can also use CSS for styling, this would be look like this then: <iframe src="https://megafile.biz/file/"Link to File"/embed/Parameter1/"The data needed to display the page via iFrame can be changed as desired. In order to display the site at best we suggest a minimum width of 800 and a minimum height of 500 pixel. Embedding with BB-code The BB-code for the iFrame has to look like this: [iframe=https://megafile.biz/file/"Link to File"/embed/Parameter1/]Now following the meaning and values of the defined parameters gets listed:
Usage Guidelines of the API The API can be used by anyone for free. All parameter the user can define has to be given correct and as expected. In case some given values are not correct the parameter will get thrown away and the default value will get used. In case of any massively requesting of wrong or suspicious looking parameters the account of the requesting user might get blocked from requesting further API-calls! |