Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit a6191b7

Browse files
author
Michael Reinsch
committed
updated to use new API endpoints
1 parent 9befbcc commit a6191b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/creatubbles/partner_application.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ class Creatubbles::PartnerApplication < Creatubbles::BaseObject
3737
updated_at
3838
]
3939

40-
# TODO update API endpoint
4140
def creations
42-
res = @connection.get("creations?partner_application_id=#{slug}")
41+
res = @connection.get("partner_applications/#{slug}/creations")
4342
Creatubbles.instantiate_objects_from_response(res, @connection)
4443
end
4544
end

lib/creatubbles/user.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ def creators
2222
Creatubbles.instantiate_objects_from_response(res, @connection)
2323
end
2424

25-
# TODO update API endpoint
2625
def creations
27-
res = @connection.get("creations?user_id=#{id}")
26+
res = @connection.get("users/#{id}/creations")
2827
Creatubbles.instantiate_objects_from_response(res, @connection)
2928
end
3029
end

0 commit comments

Comments
 (0)