Displaying all 3 messages |
Private User
11/29/2011 at 3:51
|
Is there a method to detect if you have edit access to a public profile or not?
On private profiles I can detect it by having a name field, but no first and last name fields, but it would in general be nice to have a specific true/false parameter in the profile API data. |
|
Private User
2/27/2012 at 15:43
|
We are in a process of adding a mechanism for querying what actions a user can perform on a profile (or any object for that matter). To query for allowed actions, you need to pass an "actions" parameter with a list of available object/profile actions you are interested in.
For example: http://www.geni.com/api/profile?fields=id,name&actions=delete,update,follow,unfollow The response will contain actions field as well with a list of allowed actions from the list of actions you have queried. For the above example: {id:"123", name:"Michael", actions:["update","follow"]} Here is the full list of profile actions: add, add-child, add-parent, add-partner, add-sibling add-to-family check-public compare delete follow invite invite-to-family photos remind remove-from-family send-message unfollow update-basics update, add-mugshot videos visible-tree This mechanism is already available live and will be documented in the upcoming releases of the API. |
|
Private User
3/20/2012 at 9:14
|
Thanks, - I notice that using the field_group=all does not return the actions table as I would expect. |