TruthSift API version 2.0 beta


INSTANCES - Working with Corporate Instances
  1. Get My Instances
  2. Get Count Of Members In an Instance
  3. Get List Of Members In an Instance

WORKSPACES - Working with Workspaces
  1. Get Count Of My Workspaces
  2. Get List Of My Workspaces
  3. Get Count Of My Shared Workspaces
  4. Get List Of My Shared Workspaces
  5. Get Count Of Members In a Workspace
  6. Get List Of Members In a Workspace
  7. Get List Of Workspaces as a Dropdown
  8. Create New Workspace
  9. Get Workspace Details
  10. Update Workspace
  11. Delete Workspace
  12. Add User To Workspace
  13. Delete User From Workspace
  14. Replicate Workspace
  15. Archive Workspace
  16. Unarchive Workspace
  17. Get Count of Archived Workspaces
  18. Get List of Archived Workspaces
  19. Change Owner of Workspace

MEMBERSHIP - Functions related to membership and personal profile
  1. Get My Profile
  2. Update Profile
  3. Get My Notifications
  4. Change Password
  5. Clear My Notifications
  6. Mark All My Notifications As Read
  7. Mark A Single Notification As Read
GRAPHS - Functions related to graphs and statements
  1. Get Count Of My Graphs
  2. Get List Of My Graphs
  3. Search My Graphs
  4. Get Count Of My Shared Graphs
  5. Get List Of My Shared Graphs
  6. Get Count Of My Closed Graphs
  7. Get List Of My Closed Graphs
  8. Add New Graph
  9. Get Graph Details
  10. Update Graph
  11. Delete Graph
  12. Get Shared Members Of A Graph
  13. Add Shared Member To A Graph >>
  14. Delete Shared Member From A Graph
  15. Get Ranking Parameters Of a Graph
  16. Add Ranking Parameter To a Graph
  17. Update Ranking Parameter In a Graph
  18. Delete Ranking Parameter From a Graph
  19. Assign Ranking Score
  20. Get Ranking Score For a Parameter
  21. Get Statements Of A Graph
  22. Get Single Statement
  23. Add Statement To A Graph
  24. Update Statement In A Graph
  25. Delete Statement From A Graph
  26. Replicate Graph
  27. Change Owner of Graph
Add Shared Member To a Topic
Category: Graphs

DESCRIPTION

Add a shared member to a Topic


ENDPOINT
/api/addPersonToSharing/{apiKey}/{instanceId}/{graphId}


PARAMETERS
Parameter Type Mandatory
apiKey string yes
instanceId int yes
graphId int yes


POST DATA
Field Type Mandatory
email string - email id string of Person yes
view - view access string - should be Yes or No yes
edit - edit access string - should be Yes or No yes


RESPONSE IN JSON FORMAT ERROR MESSAGES


SAMPLE USAGE
curl https://truthsift.com/api/addPersonToSharing/54-c874ab70/1/29 -d "email=sengupta_amit@hotmail.com&view=yes&edit=yes" -H "Content-Type: application/x-www-form-urlencoded" -X POST
			  	
error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE ^ E_DEPRECATED);

$post = "email=sengupta_amit@hotmail.com&view=yes&edit=yes";

$curl = curl_init();
$url = "https://truthsift.com/api/addPersonToSharing/54-c874ab70/1/29";

curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($curl);
curl_close($curl);

var_dump($response);