File Upload API

Uploading files directly from your server is now possible and extremely easy.

Download filemack PHP Class Get API Keys

include('filemack.class.php');

## start the filemack class
$filemack = new filemack;

## set your api key
$filemack->api_key = 'YOUR_API_KEY';

## set your api secret
$filemack->api_secret = 'YOUR_API_SECRET';

## enable individual hosts
$filemack->clicknupload = 1;
$filemack->dopefile = 1;

## or enable all of them	
$filemack->all();

## change embed color 1
$filemack->embed_color_1 = '375a7f';

## change embed color 2
$filemack->embed_color_2 = 'ffffff';

## upload the file
#$links = $filemack->upload(dirname(__FILE__).'/audio.mp3');

## upload the file with new filename
$links = $filemack->upload(dirname(__FILE__)'/audio.mp3','Ryan Little - Paradise.mp3');

## links variable will be an array
Array
(
    [success] => 1
    [embed] => <iframe src="https://www.filemack.com/embed/YdugtL8sSzV5?c1=375a7f&c2=ffffff" frameborder="0" scrolling="none" width="100%" height="64"></iframe>
    [links] => Array
        (
            [filemack] => https://www.filemack.com/YdugtL8sSzV5
            [clicknupload] => https://www.filemack.com/cu_tQwdzijxCJpmOIqd
            [zippyshare] => https://www.filemack.com/zs_fL6CxCymd7EUe9Qh
            [dopefile] => https://www.filemack.com/df_rPNgoMH7pznIK6rq
            [affix] => https://www.filemack.com/af_c54jPe26dfcEc30a
            [tusfiles] => https://www.filemack.com/tf_RGtEhDrnlTMHsSKO
            [suprafiles] => https://www.filemack.com/sf_vm4g0FuRwXlxbBsP
        )

)
						

Audio Player API

You can use this javascript to embed our audio player and stream your own MP3's. This also allows you to adjust the players colors.



<script>
var fm_audio_title = 'Ryan Little - Paradise.mp3',
    fm_audio_url = 'https://www.filemack.com/embed/stream-demo.mp3',
    fm_embed_color_1 = '375a7f',
    fm_embed_color_2 = 'ffffff';
</script>
<script type="text/javascript" src="//filemack.com/embed/player.js"></script>
						

URL Auto Shrinker

Monetize any file links from hosts we currently support by embedding this simple javascript file.

Get API Keys

<script>
var fm_api = 'YOUR_API_KEY';
</script>
<script type="text/javascript" src="//www.filemack.com/embed/api.js"></script>
						


filemack is not a file host. No files are hosted on filemack servers. We do not claim any of the materials and any copyright infringement complaints should be directed to the respective third party hosting site.

Home | DMCA | Privacy Policy | Features | Earn $$$ | Audio Player | API | Contact Us