- Previous: pikeo.photos.setMeta
- Up: List of the Methods
- Next: pikeo.photos.upload
pikeo.photos.setPrivacy
Change the privacy level of a list of photos (photo_id_list).
The var "access_type" is chosen from :
- 0 for private
- 2 for friends only
- 4 for family only
- 6 for friends and family only
- 7 for publicAuthentication is required.
force_quit_group allow you to decide if photos can quit groups automatically. It happens when photo privacy change to a more private level that does not correspond to group accessibility.
Additional Parameters
| Type | Parameter | Required | Description |
|---|---|---|---|
| List<Integer> | photo_id_list | Yes | The list of photo ids to change the privacy |
| Integer |
access_type |
Yes | The type of access to set to the list of photos |
| Boolean | force_quit_group | No | option to force quitting group |
Returns
The id list of removed (picture X group), none if no associations removed.
REST
Call
The following code represents the parameters of the HTTP POST request:
access_type=6&photo_id_list=23140%2C23137%2C23749%2C&login=jattali&nonce=MjYwMjk3NTYwOTk2MjQ5NTQ0Ng%3D%3D×tamp=2007-11-01T15%3A40%3A54Z&api_key=your_api_key&force_quit_group=true&api_sig=XF9qQ9iGZskSVdzxM21tGGXWiLE=&method=pikeo.photos.setPrivacy(decoded: access_type=6&photo_id_list=23140,23137,23749,&login=jattali&nonce=MjYwMjk3NTYwOTk2MjQ5NTQ0Ng==×tamp=2007-11-01T15:40:54Z&api_key=your_api_key&force_quit_group=true&api_sig=XF9qQ9iGZskSVdzxM21tGGXWiLE=&method=pikeo.photos.setPrivacy)
Response
- <?xml version="1.0" encoding="UTF-8"?>
- <response>
- <value>
- <array>
- <integer_pair>
- <integer1>23749</integer1>
- <integer2>35</integer2>
- </integer_pair>
- </array>
- </value>
- </response>
XMLRPC
Call
- <methodCall>
- <methodName>pikeo.photos.setPrivacy</methodName>
- <params>
- <param>
- <value>
- <struct>
- <member>
- <name>access_type</name>
- <value>
- <i4>6</i4>
- </value>
- </member>
- <member>
- <name>login</name>
- <value>shravanthi</value>
- </member>
- <member>
- <name>nonce</name>
- <value>LTQ0OTIxMDgwOTk1MDY2OTIxMzM=</value>
- </member>
- <member>
- <name>photo_id_list</name>
- <value>
- <array>
- <data>
- <value>
- <i4>23140</i4>
- </value>
- <value>
- <i4>23137</i4>
- </value>
- <value>
- <i4>23695</i4>
- </value>
- </data>
- </array>
- </value>
- </member>
- <member>
- <name>timestamp</name>
- <value>2008-07-23T18:58:19Z</value>
- </member>
- <member>
- <name>api_key</name>
- <value>89e2b6457f20b8845213a8900644c0b1</value>
- </member>
- <member>
- <name>api_sig</name>
- <value>ZnvuZNO7B/SyXFjUcP/rI2kPLdA=</value>
- </member>
- <member>
- <name>force_quit_group</name>
- <value>
- <boolean>1</boolean>
- </value>
- </member>
- </struct>
- </value>
- </params>
- </methodCall>
Response
- <methodResponse>
- <params>
- <param>
- <value>
- <array>
- <data>
- <value>
- <struct>
- <member>
- <name>objectType</name>
- <value>
- <string>integer_pair</string>
- </value>
- </member>
- <member>
- <name>integer1</name>
- <value>
- <i4>23685</i4>
- </value>
- </member>
- <member>
- <name>integer2</name>
- <value>
- <i4>53</i4>
- </value>
- </member>
- </struct>
- </value>
- </data>
- </array>
- </value>
- </params>
- </methodResponse>
- Previous: pikeo.photos.setMeta
- Up: List of the Methods
- Next: pikeo.photos.upload
Docs Navigation
- Home
- Authentication
- PictureURL
- Errors
- phpApiKit
- javaApiKit
- DTO
- API
- pikeo test echo
- pikeo test version
- pikeo test login
- pikeo albums getInfo
- pikeo albums getList
- pikeo albums getPhotos
- pikeo comments addComment
- pikeo comments deleteComment
- pikeo comments getList
- pikeo comments getMyCommentedPhotos
- pikeo comments getPicturesCommentedByMe
- pikeo comments updateComment
- pikeo contacts getList
- pikeo groups addPhotos
- pikeo groups findByName
- pikeo groups getInfo
- pikeo groups getList
- pikeo groups getMembers
- pikeo groups getPhotos
- pikeo groups removePhotos
- pikeo groups search
- pikeo people findByUsername
- pikeo people getInfo
- pikeo people getMyInfo
- pikeo people getPublicPhotos
- pikeo photos addTags
- pikeo photos getContactsPublicPhotos
- pikeo photos getInfo
- pikeo photos getMostViewed
- pikeo photos getUserPhotos
- pikeo photos search
- pikeo photos setMeta
- pikeo photos setPrivacy
- pikeo photos upload

Comments
New comments are not being accepted at this time.