diff options
Diffstat (limited to 'services/linkedin/groups.json')
| -rw-r--r-- | services/linkedin/groups.json | 218 |
1 files changed, 218 insertions, 0 deletions
diff --git a/services/linkedin/groups.json b/services/linkedin/groups.json new file mode 100644 index 0000000..826dda2 --- /dev/null +++ b/services/linkedin/groups.json @@ -0,0 +1,218 @@ +{ + "version" : "0.1", + "base_url" : "http://api.linkedin.com", + "methods" : { + "group_by_id" : { + "path" : "/v1/groups/:id:selector", + "method" : "GET", + "required_params" : [ + "id", + "selector" + ], + "optional_params" : [ + "format" + ], + "expected_status" : [ 200, 404 ] + }, + "my_group_memberships" : { + "path" : "/v1/people/~/group-memberships:selector", + "method" : "GET", + "required_params" : [ + "selector" + ], + "optional_params" : [ + "membership-state", + "format" + ], + "expected_status" : [ 200 ] + }, + "show_group_setting" : { + "path" : "/v1/people/~/group-memberships/:id:selector", + "method" : "GET", + "required_params" : [ + "id", + "selector" + ], + "optional_params" : [ + "format" + ], + "expected_status" : [ 200, 404 ] + }, + "change_group_setting" : { + "path" : "/v1/people/~/group-memberships/:id", + "method" : "PUT", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "join_group_by_id" : { + "path" : "/v1/people/~/group-memberships/:id", + "method" : "PUT", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "join_group" : { + "path" : "/v1/people/~/group-memberships", + "method" : "POST", + "required_payload" : true, + "expected_status" : [ 201 ] + }, + "leave_group" : { + "path" : "/v1/people/~/group-memberships/:id", + "method" : "DELETE", + "required_params" : [ + "id" + ], + "expected_status" : [ 204 ] + }, + "show_posts" : { + "path" : "/v1/groups/:id/posts:selector", + "method" : "GET", + "required_params" : [ + "id", + "selector" + ], + "optional_params" : [ + "start", + "count", + "order", + "role", + "category", + "modified-since", + "format" + ], + "expected_status" : [ 200, 404 ] + }, + "post_by_id" : { + "path" : "/v1/posts/:id:selector", + "method" : "GET", + "required_params" : [ + "id", + "selector" + ], + "optional_params" : [ + "format" + ], + "expected_status" : [ 200, 404 ] + }, + "show_comments" : { + "path" : "/v1/posts/:id/comments:selector", + "method" : "GET", + "required_params" : [ + "id", + "selector" + ], + "optional_params" : [ + "start", + "count", + "order", + "format" + ], + "expected_status" : [ 200, 404 ] + }, + "create_post" : { + "path" : "/v1/groups/:id/posts", + "method" : "POST", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "like_post" : { + "path" : "/v1/posts/:id/relation-to-viewer/is-liked", + "method" : "PUT", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "follow_post" : { + "path" : "/v1/posts/:id/relation-to-viewer/is-following", + "method" : "PUT", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "flag_post" : { + "path" : "/v1/posts/:id/category/code", + "method" : "PUT", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "delete_post" : { + "path" : "/v1/posts/:id", + "method" : "DELETE", + "required_params" : [ + "id" + ], + "expected_status" : [ 204 ] + }, + "comment_by_id" : { + "path" : "/v1/comments/:id:selector", + "method" : "GET", + "required_params" : [ + "id", + "selector" + ], + "optional_params" : [ + "format" + ], + "expected_status" : [ 200, 404 ] + }, + "add_comment" : { + "path" : "/v1/posts/:id/comments", + "method" : "POST", + "required_payload" : true, + "required_params" : [ + "id" + ], + "expected_status" : [ 201 ] + }, + "delete_comment" : { + "path" : "/v1/comments/:id", + "method" : "DELETE", + "required_params" : [ + "id" + ], + "expected_status" : [ 204 ] + }, + "suggestion_groups" : { + "path" : "/v1/people/~/suggestions/groups:selector", + "method" : "GET", + "required_params" : [ + "selector" + ], + "optional_params" : [ + "format" + ], + "expected_status" : [ 200 ] + }, + "remove_group_suggestion" : { + "path" : "/v1/people/~/suggestions/groups/:id", + "method" : "DELETE", + "required_params" : [ + "id" + ], + "expected_status" : [ 204 ] + } + }, + "authentication" : true, + "authority" : "http://github.com/SPORE", + "name" : "LinkedIn", + "meta" : { + "documentation" : "http://developer.linkedin.com/", + "module" : "Groups" + } +} |
