angellist_api 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module AngellistApi
11
11
  # @example Makes the authenticated user follow the specified item. Returns the new follow on success, or an error on failure.
12
12
  # AngellistApi.new_follow
13
13
  def new_follow(options={})
14
- post("/follows", options, :format => :json, :phoenix => true)
14
+ post("1/follows", options, :format => :json, :phoenix => true)
15
15
  end
16
16
 
17
17
  # Makes the authenticated user stop following the specified item. Returns the deleted follow on success, or an error on failure.
@@ -23,7 +23,7 @@ module AngellistApi
23
23
  # @example Makes the authenticated user stop following the specified item. Returns the deleted follow on success, or an error on failure.
24
24
  # AngellistApi.delete_follow
25
25
  def delete_follow(options={})
26
- delete("/follows", options, :format => :json, :phoenix => true)
26
+ delete("1/follows", options, :format => :json, :phoenix => true)
27
27
  end
28
28
 
29
29
  # Return the given user's followers, paginated and ordered by most recent follower first.
@@ -33,7 +33,7 @@ module AngellistApi
33
33
  # @example Return the given user's followers, paginated and ordered by most recent follower first.
34
34
  # AngellistApi.get_user_followers
35
35
  def get_user_followers(id)
36
- get("/users/#{id}/followers", :format => :json, :phoenix => true)
36
+ get("1/users/#{id}/followers", :format => :json, :phoenix => true)
37
37
  end
38
38
 
39
39
  # Return the ids of the given user's followers, paginated and ordered by most recent follower first.
@@ -43,7 +43,7 @@ module AngellistApi
43
43
  # @example Return the ids of the given user's followers, paginated and ordered by most recent follower first.
44
44
  # AngellistApi.get_user_follower_ids
45
45
  def get_user_follower_ids(id)
46
- get("/users/#{id}/followers/ids", :format => :json, :phoenix => true)
46
+ get("1/users/#{id}/followers/ids", :format => :json, :phoenix => true)
47
47
  end
48
48
 
49
49
  # Return objects that the given user is following, paginated and ordered by most recent follow first. See the type parameter to specify which class of objects to return.
@@ -55,7 +55,7 @@ module AngellistApi
55
55
  # @example Return objects that the given user is following, paginated and ordered by most recent follow first. See the type parameter to specify which class of objects to return.
56
56
  # AngellistApi.get_user_following
57
57
  def get_user_following(id, options={})
58
- get("/users/#{id}/following ", options, :format => :json, :phoenix => true)
58
+ get("1/users/#{id}/following ", options, :format => :json, :phoenix => true)
59
59
  end
60
60
 
61
61
  # Return ids of objects that the given user is following, paginated and ordered by most recent follow first. See the type parameter to specify which class of objects to return. Responds like GET /users/:id/followers/ids.
@@ -67,7 +67,7 @@ module AngellistApi
67
67
  # @example Return ids of objects that the given user is following, paginated and ordered by most recent follow first. See the type parameter to specify which class of objects to return. Responds like GET /users/:id/followers/ids.
68
68
  # AngellistApi.get_user_following_ids
69
69
  def get_user_following_ids(id, options={})
70
- get("/users/#{id}/following/ids ", options, :format => :json, :phoenix => true)
70
+ get("1/users/#{id}/following/ids ", options, :format => :json, :phoenix => true)
71
71
  end
72
72
 
73
73
  # Returns the given startup's followers, paginated and ordered by most recent follower first. Responds like GET /users/:id/followers.
@@ -78,7 +78,7 @@ module AngellistApi
78
78
  # @example Returns the given startup's followers, paginated and ordered by most recent follower first. Responds like GET /users/:id/followers.
79
79
  # AngellistApi.get_startup_followers
80
80
  def get_startup_followers(id)
81
- get("/startups/#{id}/followers", :format => :json, :phoenix => true)
81
+ get("1/startups/#{id}/followers", :format => :json, :phoenix => true)
82
82
  end
83
83
 
84
84
  # Returns the ids of the given startup's followers, paginated and ordered by most recent follower first. Responds like GET /users/:id/followers.
@@ -89,7 +89,7 @@ module AngellistApi
89
89
  # @example Returns the ids of the given startup's followers, paginated and ordered by most recent follower first. Responds like GET /users/:id/followers.
90
90
  # AngellistApi.get_startup_follower_ids
91
91
  def get_startup_follower_ids(id)
92
- get("/startups/#{id}/followers/ids", :format => :json, :phoenix => true)
92
+ get("1/startups/#{id}/followers/ids", :format => :json, :phoenix => true)
93
93
  end
94
94
  end
95
95
  end
@@ -10,7 +10,7 @@ module AngellistApi
10
10
  # @example Return reviews for the given user. If no user given, the authenticated user is used. Reviews are paginated and ordered by most recent first. Also returns the total count of positive reviews.
11
11
  # AngellistApi.get_reviews
12
12
  def get_reviews(options={})
13
- get("/reviews", options, :format => :json, :phoenix => true)
13
+ get("1/reviews", options, :format => :json, :phoenix => true)
14
14
  end
15
15
  end
16
16
  end
@@ -11,7 +11,7 @@ module AngellistApi
11
11
  # @example Given a startup_id, returns the users involved in that startup. Given a user_id, returns the startups that user is involved in. If neither parameter is given, the authenticated user is used. Possible roles include team_member, past_investor, advisor and referrer. Roles are paginated and ordered by most recently declared first.
12
12
  # AngellistApi.get_startup_roles
13
13
  def get_startup_roles(options={})
14
- get("/startup_roles", options, :format => :json, :phoenix => true)
14
+ get("1/startup_roles", options, :format => :json, :phoenix => true)
15
15
  end
16
16
  end
17
17
  end
@@ -9,7 +9,7 @@ module AngellistApi
9
9
  # @example Get a startup's information given an id.
10
10
  # AngellistApi.get_startup
11
11
  def get_startup(id)
12
- get("/startups/#{id}", :format => :json, :phoenix => true)
12
+ get("1/startups/#{id}", :format => :json, :phoenix => true)
13
13
  end
14
14
 
15
15
  # Search for a startup given a URL slug. Responds like GET /startups/:id.
@@ -21,7 +21,7 @@ module AngellistApi
21
21
  # @example Search for a startup given a URL slug. Responds like GET /startups/:id.
22
22
  # AngellistApi.startup_search
23
23
  def startup_search(options={})
24
- get("/startups/search", options, :format => :json, :phoenix => true)
24
+ get("1/startups/search", options, :format => :json, :phoenix => true)
25
25
  end
26
26
  end
27
27
  end
@@ -11,7 +11,7 @@ module AngellistApi
11
11
  # @example Return status updates from the given user or startup. If neither is specified, the authenticated user is used. Status updates are paginated and ordered by most recent first.
12
12
  # AngellistApi.get_status_updates
13
13
  def get_status_updates(options={})
14
- get("/status_updates", options, :format => :json, :phoenix => true)
14
+ get("1/status_updates", options, :format => :json, :phoenix => true)
15
15
  end
16
16
 
17
17
  # Creates a status update for the authenticated user or for a startup the authenticated user is a team member of. Returns the new status update on success, or an error on failure.
@@ -23,7 +23,7 @@ module AngellistApi
23
23
  # @example Creates a status update for the authenticated user or for a startup the authenticated user is a team member of. Returns the new status update on success, or an error on failure.
24
24
  # AngellistApi.post_status_updates
25
25
  def post_status_updates(options={})
26
- post("/status_updates", options, :format => :json, :phoenix => true)
26
+ post("1/status_updates", options, :format => :json, :phoenix => true)
27
27
  end
28
28
 
29
29
  # Destroys the specified status update belonging to the authenticated user or to a startup the authenticated user is a team member of. Returns the destroyed status update on success, or an error on failure.
@@ -33,7 +33,7 @@ module AngellistApi
33
33
  # @example Destroys the specified status update belonging to the authenticated user or to a startup the authenticated user is a team member of. Returns the destroyed status update on success, or an error on failure.
34
34
  # AngellistApi.delete_status_updates
35
35
  def delete_status_updates(id)
36
- delete("/status_updates/#{id}", :format => :json, :phoenix => true)
36
+ delete("1/status_updates/#{id}", :format => :json, :phoenix => true)
37
37
  end
38
38
  end
39
39
  end
@@ -9,7 +9,7 @@ module AngellistApi
9
9
  # @example Get information on a tag
10
10
  # AngellistApi.get_tag
11
11
  def get_tag(id)
12
- get("/tags/#{id}", :format => :json, :phoenix => true)
12
+ get("1/tags/#{id}", :format => :json, :phoenix => true)
13
13
  end
14
14
 
15
15
  # Returns children of the given tag. Market and location tags form a Directed Acyclic Graph. Results are paginated and ordered by id descending.
@@ -19,7 +19,7 @@ module AngellistApi
19
19
  # @example Returns children of the given tag. Market and location tags form a Directed Acyclic Graph. Results are paginated and ordered by id descending.
20
20
  # AngellistApi.get_tag_children
21
21
  def get_tag_children(id)
22
- get("/tags/#{id}/children", :format => :json, :phoenix => true)
22
+ get("1/tags/#{id}/children", :format => :json, :phoenix => true)
23
23
  end
24
24
 
25
25
  # Returns parents of the given tag. For more details, see the documentation for GET /tags/:id/children.
@@ -29,7 +29,7 @@ module AngellistApi
29
29
  # @example Returns parents of the given tag. For more details, see the documentation for GET /tags/:id/children.
30
30
  # AngellistApi.get_tag_parents
31
31
  def get_tag_parents(id)
32
- get("/tags/#{id}/parents", :format => :json, :phoenix => true)
32
+ get("1/tags/#{id}/parents", :format => :json, :phoenix => true)
33
33
  end
34
34
 
35
35
  # Returns startups that are tagged with the given tag or a child of the given tag. Results are paginated and ordered according to the order parameter.
@@ -40,7 +40,7 @@ module AngellistApi
40
40
  # @example Returns Returns startups that are tagged with the given tag or a child of the given tag. Results are paginated and ordered according to the order parameter.
41
41
  # AngellistApi.get_tag_startups
42
42
  def get_tag_startups(options = {})
43
- get("/tags/#{id}/startups", options, :format => :json, :phoenix => true)
43
+ get("1/tags/#{id}/startups", options, :format => :json, :phoenix => true)
44
44
  end
45
45
  end
46
46
  end
@@ -9,7 +9,7 @@ module AngellistApi
9
9
  # @example Get a user's information given an id.
10
10
  # AngellistApi.get_user
11
11
  def get_user(id)
12
- get("/users/#{id}", :format => :json, :phoenix => true)
12
+ get("1/users/#{id}", :format => :json, :phoenix => true)
13
13
  end
14
14
 
15
15
  # Search for a user given a URL slug. Responds like GET /users/:id.
@@ -21,7 +21,7 @@ module AngellistApi
21
21
  # @example Search for a user given a URL slug or md5 hash of an email address. Responds like GET /users/:id.
22
22
  # AngellistApi.user_search
23
23
  def user_search(options={})
24
- get("/users/search", options, :format => :json, :phoenix => true)
24
+ get("1/users/search", options, :format => :json, :phoenix => true)
25
25
  end
26
26
 
27
27
  # Get the current user's information. Responds like GET /users/:id.
@@ -30,7 +30,7 @@ module AngellistApi
30
30
  # @example Get the current user's information. Responds like GET /users/:id.
31
31
  # AngellistApi.user_search
32
32
  def me
33
- get("/me", :format => :json, :phoenix => true)
33
+ get("1/me", :format => :json, :phoenix => true)
34
34
  end
35
35
  end
36
36
  end
@@ -27,7 +27,7 @@ module AngellistApi
27
27
  DEFAULT_CONSUMER_SECRET = nil
28
28
 
29
29
  # The endpoint that will be used to connect if none is set
30
- DEFAULT_ENDPOINT = "https://api.angel.co/1/".freeze
30
+ DEFAULT_ENDPOINT = "https://api.angel.co/".freeze
31
31
 
32
32
  # The response format appended to the path and sent in the 'Accept' header if none is set
33
33
  #
@@ -1,3 +1,3 @@
1
1
  module AngellistApi
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 9
9
- version: 0.0.9
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Singh