commit | author | age
|
6bd166
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
DM |
2 |
<html><head><title>ISPCOnfig 3 remote API documentation</title> |
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
9 |
<link rel="stylesheet" type="text/css" href="definitionen.css"> |
|
10 |
<style type="text/css"> |
|
11 |
</style></head> |
|
12 |
|
|
13 |
<body> |
|
14 |
<div style="padding:40px"> |
|
15 |
<h1>sites_aps_get_package_file(<span class="var">$session_id</span>, <span class="var">$primary_id</span>, <span class="var">$filename</span>);</h1> |
|
16 |
<br> |
|
17 |
<p class="headgrp">Description: </p> |
|
18 |
<p class="margin"> Gets the file with given name (like screenshots or icon) of the selected package. Use sites_aps_get_package_details to get all available files of this package.</p><br> |
|
19 |
<p class="headgrp">Input Variables: </p> |
|
20 |
<p class="margin"> <span class="var">$session_id</span>, <span class="var">$primary_id</span>, <span class="var">$filename</span></p> |
|
21 |
<p class="headgrp">Parameters (in <span class="var">$params</span>): </p> |
|
22 |
<p class="margin"> None</p> |
|
23 |
<p class="headgrp">Output: </p> |
|
24 |
<p class="margin"> Returns base64_encoded file content of selected file.<br />Use the followoing example code to save file content over remote api:<br /><span class="var">file_put_contents($file, base64_decode(sites_aps_get_package_file($session_id, $primary_id, $filename)));</span></p> |
|
25 |
<!--<b>Output:</b> |
|
26 |
<p style="margin-left:100px">Gives a record of </p> --> |
|
27 |
</div> |
|
28 |
|
|
29 |
</body></html> |