100% found this document useful (2 votes)
44 views3 pages

Desktop Background Management: by Leo Gabriel Villanueva

This document describes the APIs for managing desktop backgrounds in an application. It includes APIs for retrieving a list of uploaded desktop backgrounds, deleting a background by ID, and uploading a new background. The APIs require an authentication key and session ID for security. Uploading will store the original image and a thumbnail in user-specific folders on the server.

Uploaded by

fsbautista
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
44 views3 pages

Desktop Background Management: by Leo Gabriel Villanueva

This document describes the APIs for managing desktop backgrounds in an application. It includes APIs for retrieving a list of uploaded desktop backgrounds, deleting a background by ID, and uploading a new background. The APIs require an authentication key and session ID for security. Uploading will store the original image and a thumbnail in user-specific folders on the server.

Uploaded by

fsbautista
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Desktop Background Management

By Leo Gabriel Villanueva

Retrieving Desktop Background

This is used to list all uploaded desktop background.

URL Format:

baseURL/manage_desktop/list_uploadDesktopBG/{authkey}:::{session_id}

URL :

http://staging1.zallas.ph/DNG/DNG_PHPDEV/index.php/manage_desktop/list_upload
DesktopBG/1f3870be274f6c49b3e31a0c6728957f:::123

Where:

Authkey=1f3870be274f6c49b3e31a0c6728957f

Session id/seed=123

These are used for security reason. These are a must in all feature
processing. It will serve as the user mapping to get all information
needed for users .

Sample Output

[{"image_id":"10","user_id":"2","old_filename":"Desert_Landscape.jpg","new_filename":"Des
ert_Landscape_1243540846.jpg","path_thumbnail":"https:\/\/fanyv88.com:443\/http\/staging1.zallas.ph\/DNG\/DNG_P
HPDEV\/\/user_file\/silver\/thumbnails\/","size_thumbnail":"50x67","path_original_pic":"http:\/
\/staging1.zallas.ph\/DNG\/DNG_PHPDEV\/\/user_file\/silver\/images\/","size_original_pic":"102
4x768","date_created":"2009-05-29
04:00:46"},{"image_id":"9","user_id":"2","old_filename":"Frangipani_Flowers.jpg","new_filen
ame":"Frangipani_Flowers_1243540714.jpg","path_thumbnail":"https:\/\/fanyv88.com:443\/http\/staging1.zallas.ph\/D
NG\/DNG_PHPDEV\/\/user_file\/silver\/thumbnails\/","size_thumbnail":"50x67","path_original_
pic":"https:\/\/fanyv88.com:443\/http\/staging1.zallas.ph\/DNG\/DNG_PHPDEV\/\/user_file\/silver\/images\/","size_origin
al_pic":"1024x768","date_created":"2009-05-29 03:58:34"}]

Deleting Desktop Background

This is used to delete uploaded desktop background in the database.

URL Format:

baseURL/delete_desktopBG/index/{authkey}:::{image_id}
URL

http://staging1.zallas.ph/DNG/DNG_PHPDEV/index.php/delete_desktopBG/index/1f38
70be274f6c49b3e31a0c6728957f:::1

Where:

Authkey=1f3870be274f6c49b3e31a0c6728957f

Image id=1

Sample Output:

Successful

200 OK -seperat0r-[{"Status":true,"Message":"Image background record


removed."}]

Uploading a Desktop Background

This is used to upload desktop background.

Expected Output:

1. Upload desktop background from frontend.

2. Creates user folder within the user_file folder of the server; the path to the
uploaded images of the user and the thumbnail within the user_file folder
are:

- /root/user_file/user_name/images/ - for un-resized images


- /root/user_file/user_name/thumbnails/ - for thumbnails
3. Created sub folder (images and thumbnails) where images are stored.

4. Each successful uploaded background must have their thumbnail that will
be used to display all the uploaded desktop background

URL Format:

baseURL/manage_desktop/list_uploadDesktopBG/{authkey}:::{session_id}

URL

http://staging1.zallas.ph/DNG/DNG_PHPDEV/index.php/upload_desktopBG/do_upload
/ 1f3870be274f6c49b3e31a0c6728957f:::123
Sample Output:

Succesful:

Image Creek.jpg was Successfully Uploaded

Failed:

The file you are attempting to upload is larger than the permitted size.

Go back

You might also like