@@ -249,6 +249,37 @@ def set_permissions(self, permissions):
249249 return self .client ._perform_empty (
250250 "PUT" , "/projects/%s/permissions" % self .project_key , body = permissions )
251251
252+ def get_interest (self ):
253+ """
254+ Get the interest of this project. The interest means the number of watchers and the number of stars.
255+
256+ :returns: a dict object containing the interest of the project with two fields:
257+ - starCount: number of stars for this project
258+ - watchCount: number of users watching this project
259+ :rtype: dict
260+ """
261+ return self .client ._perform_json ("GET" ,"/projects/%s/interest" % self .project_key )
262+
263+ def get_timeline (self , itemCount = 100 ):
264+ """
265+ Get the timeline of this project. The timeline consists of information about the creation of this project
266+ (by whom, and when), the last modification of this project (by whom and when), a list of contributors,
267+ and a list of modifications. This list of modifications contains a maximum of itemCount elements (default: 100).
268+ If itemCount is greater than the real number of modification, itemCount is adjusted.
269+
270+ :return: a dict object containing a timeline where the top-level fields are :
271+ - allContributors: all contributors who have been involve in this project
272+ - items: a history of the modifications of the project
273+ - createdBy: who created this project
274+ - createdOn: when the project was created
275+ - lastModifiedBy: who modified this project for the last time
276+ - lastModifiedBy: when this modification took place
277+ :rtype: dict
278+ """
279+ return self .client ._perform_json ("GET" , "/projects/%s/timeline" % self .project_key , params = {
280+ "itemCount" : itemCount
281+ })
282+
252283 ########################################################
253284 # Datasets
254285 ########################################################
0 commit comments