summaryrefslogblamecommitdiff
path: root/services/linkedin/companies.json
blob: a2ce8e5fd7f924c4af00c35a2b5c87f36898efc9 (plain) (tree)
1
2
3
4
5
6
7






                                                











                                                                











                                                

















                                                              










                                                     





                                                            







                                                                          










                                                        

















                                                         
{
   "version" : "0.1",
   "base_url" : "http://api.linkedin.com",
   "methods" : {
      "company_by_id" : {
         "path" : "/v1/compagnies/:id:selector",
         "method" : "GET",
         "required_params" : [
            "id",
            "selector"
         ],
         "optional_params" : [
            "format"
         ],
         "expected_status" : [ 200, 404 ]
      },
      "company_by_name" : {
         "path" : "/v1/companies/universal-name=:name:selector",
         "method" : "GET",
         "required_params" : [
            "name",
            "selector"
         ],
         "optional_params" : [
            "format"
         ],
         "expected_status" : [ 200, 404 ]
      },
      "search_company" : {
         "path" : "/v1/company-search:selector",
         "method" : "GET",
         "required_params" : [
            "selector"
         ],
         "optional_params" : [
            "keywords",
            "hq-only",
            "facet",
            "facets",
            "start",
            "count",
            "sort",
            "format"
         ],
         "expected_status" : [ 200 ]
      },
      "my_followed_companies" : {
         "path" : "/v1/people/~/following/companies:selector",
         "method" : "GET",
         "required_params" : [
            "selector"
         ],
         "optional_params" : [
            "format"
         ],
         "expected_status" : [ 200 ]
      },
      "follow_company" : {
         "path" : "/v1/people/~/following/companies",
         "method" : "POST",
         "required_payload" : true,
         "expected_status" : [ 201 ]
      },
      "unfollow_company" : {
         "path" : "/v1/people/~/following/companies/id=:id",
         "method" : "DELETE",
         "required_params" : [
            "id"
         ],
         "expected_status" : [ 204 ]
      },
      "suggestion_companies" : {
         "path" : "/v1/people/~/suggestions/to-follow/companies:selector",
         "method" : "GET",
         "required_params" : [
            "selector"
         ],
         "optional_params" : [
            "format"
         ],
         "expected_status" : [ 200 ]
      },
      "company_products" : {
         "path" : "/v1/companies/:id/products:selector",
         "method" : "GET",
         "required_params" : [
            "id",
            "selector"
         ],
         "optional_params" : [
            "format"
         ],
         "expected_status" : [ 200 ]
      }
   },
   "authentication" : true,
   "authority" : "http://github.com/SPORE",
   "name" : "LinkedIn",
   "meta" : {
      "documentation" : "http://developer.linkedin.com/",
      "module" : "Companies"
   }
}