def get_all_votes_comments(self): return bind_api( api=self, path='/comments/votes', payload_type='vote', payload_list=True )
def get_comment(self, *args, **kwargs): """ :allowed_param: 'commentId' """ return bind_api(api=self, path='/comments/{commentId}', payload_type='comment', allowed_param=['commentId'])(*args, **kwargs)
def get_idea_details(self, *args, **kwargs): """ :allowed_param:'ideaId' """ return bind_api(api=self, path='/ideas/{ideaId}', payload_type='idea', allowed_param=['ideaId'])(*args, **kwargs)
def get_member_info_by_id(self, *args, **kwargs): """ :allowed_param: 'memberId' """ return bind_api(api=self, path='/members/{memberId}', payload_type='author', allowed_param=['memberId'])(*args, **kwargs)
def get_member_info_by_email(self, *args, **kwargs): """ :allowed_param: 'email' """ return bind_api(api=self, path='/members/email/{email}', payload_type='author', allowed_param=['email'])(*args, **kwargs)
def get_archived_ideas(self): return bind_api( api=self, path='/campaigns/archived/ideas', payload_type='idea', payload_list=True )
def get_all_votes_ideas(self): return bind_api( api=self, path='/ideas/votes', payload_type='vote', payload_list=True )
def get_all_members(self): """ :pagination_param: 'page_number', 'page_size' """ return bind_api(api=self, path='/members', payload_type='author', payload_list=True, pagination_param=['page_number', 'page_size'])
def get_campaigns(self): return bind_api( api=self, path='/campaigns', payload_type='campaign', payload_list=True )
def get_all_comments(self): """ :pagination_param: 'page_number', 'page_size' """ return bind_api(api=self, path='/comments', payload_type='comment', payload_list=True, pagination_param=['page_number', 'page_size'])
def get_votes_ideas_member(self, *args, **kwargs): """ :allowed_param: 'memberId' """ return bind_api(api=self, path='/members/{memberId}/ideas/votes', payload_type='vote', payload_list=True, allowed_param=['memberId'])(*args, **kwargs)
def delete_comment(self, *args, **kwargs): """ :allowed_param: 'commentId' """ return bind_api(api=self, path='/comments/{commentId}/delete', method='DELETE', payload_type='comment', allowed_param=['commentId'])(*args, **kwargs)
def get_comments_idea(self, *args, **kwargs): """ :allowed_param:'ideaId' """ return bind_api(api=self, path='/ideas/{ideaId}/comments', payload_type='comment', allowed_param=['ideaId'], payload_list=True)(*args, **kwargs)
def get_votes_comment(self, *args, **kwargs): """ :allowed_param: 'commentId' """ return bind_api(api=self, path='/comments/{commentId}/votes', payload_type='vote', payload_list=True, allowed_param=['commentId'])(*args, **kwargs)
def delete_idea(self, *args, **kwargs): """ :allowed_param: 'ideaId' """ return bind_api(api=self, path='/idea/{ideaId}/delete', method='DELETE', payload_type='idea', allowed_param=['ideaId'])(*args, **kwargs)
def get_member_info_by_name(self, *args, **kwargs): """ :allowed_param: 'name' """ return bind_api(api=self, path='/members/name/{name}', payload_type='author', payload_list=True, allowed_param=['name'])(*args, **kwargs)
def get_comments_member(self, *args, **kwargs): """ :allowed_param: 'memberId' """ return bind_api(api=self, path='/members/{memberId}/comments', payload_type='comment', payload_list=True, allowed_param=['memberId'])(*args, **kwargs)
def attach_avatar_to_member(self, filename, *args, **kwargs): """ :allowed_param: memberId """ kwargs.update({'file': {'avatar': open(filename, 'rb')}}) return bind_api(api=self, path='/members/{memberId}/avatar/upload', method='POST', payload_type='json', allowed_param=['memberId'])(*args, **kwargs)
def create_new_member(self, *args, **kwargs): """ :allowed_param: 'name', 'email' """ kwargs.update({'headers': {'content-type': 'application/json'}}) return bind_api(api=self, path='/members', method='POST', payload_type='author', post_param=['name', 'email'])(*args, **kwargs)
def attach_file_to_idea(self, filename, *args, **kwargs): """ :allowed_param: ideaId """ kwargs.update({'file': {'attachment': open(filename, 'rb')}}) return bind_api(api=self, path='/ideas/{ideaId}/attach', method='POST', payload_type='idea', allowed_param=['ideaId'])(*args, **kwargs)
def get_member_info_by_email(self, *args, **kwargs): """ :allowed_param: 'email' """ return bind_api( api=self, path='/members/email/{email}', payload_type='author', allowed_param=['email'] )(*args, **kwargs)
def get_member_info_by_id(self, *args, **kwargs): """ :allowed_param: 'memberId' """ return bind_api( api=self, path='/members/{memberId}', payload_type='author', allowed_param=['memberId'] )(*args, **kwargs)
def get_idea_details(self, *args, **kwargs): """ :allowed_param:'ideaId' """ return bind_api( api=self, path='/ideas/{ideaId}', payload_type='idea', allowed_param=['ideaId'] )(*args, **kwargs)
def get_comment(self, *args, **kwargs): """ :allowed_param: 'commentId' """ return bind_api( api=self, path='/comments/{commentId}', payload_type='comment', allowed_param=['commentId'] )(*args, **kwargs)
def get_all_members(self): """ :pagination_param: 'page_number', 'page_size' """ return bind_api( api=self, path='/members', payload_type='author', payload_list=True, pagination_param=['page_number', 'page_size'] )
def delete_idea(self, *args, **kwargs): """ :allowed_param: 'ideaId' """ return bind_api( api=self, path='/idea/{ideaId}/delete', method='DELETE', payload_type='idea', allowed_param=['ideaId'] )(*args, **kwargs)
def get_all_comments(self): """ :pagination_param: 'page_number', 'page_size' """ return bind_api( api=self, path='/comments', payload_type='comment', payload_list=True, pagination_param=['page_number', 'page_size'] )
def get_member_info_by_name(self, *args, **kwargs): """ :allowed_param: 'name' """ return bind_api( api=self, path='/members/name/{name}', payload_type='author', payload_list=True, allowed_param=['name'] )(*args, **kwargs)
def get_votes_comment(self, *args, **kwargs): """ :allowed_param: 'commentId' """ return bind_api( api=self, path='/comments/{commentId}/votes', payload_type='vote', payload_list=True, allowed_param=['commentId'] )(*args, **kwargs)
def get_votes_ideas_member(self, *args, **kwargs): """ :allowed_param: 'memberId' """ return bind_api( api=self, path='/members/{memberId}/ideas/votes', payload_type='vote', payload_list=True, allowed_param=['memberId'] )(*args, **kwargs)
def get_hot_ideas(self, **kwargs): """ :pagination_param: 'page_number', 'page_size', 'order_key' """ return bind_api( api=self, path='/ideas/hot', payload_type='idea', payload_list=True, pagination_param=['page_number', 'page_size', 'order_key'])(**kwargs)
def get_comments_member(self, *args, **kwargs): """ :allowed_param: 'memberId' """ return bind_api( api=self, path='/members/{memberId}/comments', payload_type='comment', payload_list=True, allowed_param=['memberId'] )(*args, **kwargs)
def delete_comment(self, *args, **kwargs): """ :allowed_param: 'commentId' """ return bind_api( api=self, path='/comments/{commentId}/delete', method='DELETE', payload_type='comment', allowed_param=['commentId'] )(*args, **kwargs)
def get_comments_idea(self, *args, **kwargs): """ :allowed_param:'ideaId' """ return bind_api( api=self, path='/ideas/{ideaId}/comments', payload_type='comment', allowed_param=['ideaId'], payload_list=True )(*args, **kwargs)
def comment_comment(self, *args, **kwargs): """ :allowed_param: 'commentId', 'text' """ kwargs.update({'headers': {'content-type': 'application/json'}}) return bind_api(api=self, path='/comments/{commentId}/comment', method='POST', payload_type='comment', allowed_param=['commentId'], post_param=['text'])(*args, **kwargs)
def get_hot_ideas(self, **kwargs): """ :pagination_param: 'page_number', 'page_size', 'order_key' """ return bind_api( api=self, path='/ideas/hot', payload_type='idea', payload_list=True, pagination_param=['page_number', 'page_size', 'order_key'] )(**kwargs)
def vote_down_idea(self, *args, **kwargs): """ :allowed_param: 'ideaId', 'myVote' (optional) """ kwargs.update({'headers': {'content-type': 'application/json'}}) return bind_api(api=self, path='/ideas/{ideaId}/vote/down', method='POST', payload_type='vote', allowed_param=['ideaId'], post_param=['myVote'])(*args, **kwargs)
def create_idea(self, *args, **kwargs): """ :allowed_param: 'title', 'text', 'campaignId', 'tags' (optional), 'customFields' (optional) """ kwargs.update({'headers': {'content-type':'application/json'}}) return bind_api( api=self, path='/idea', method='POST', payload_type='idea', post_param=['title', 'text', 'campaignId', 'tags', 'customFields'] )(*args, **kwargs)
def get_member_ideas(self, *args, **kwargs): """ :allowed_param: 'memberId' :pagination_param: 'page_number', 'page_size' """ return bind_api(api=self, path='/members/{memberId}/ideas', payload_type='idea', payload_list=True, allowed_param=['memberId'], pagination_param=['page_number', 'page_size'])(*args, **kwargs)
def create_new_member(self, *args, **kwargs): """ :allowed_param: 'name', 'email' """ kwargs.update({'headers': {'content-type':'application/json'}}) return bind_api( api=self, path='/members', method='POST', payload_type='author', post_param=['name', 'email'] )(*args, **kwargs)
def attach_avatar_to_member(self, filename, *args, **kwargs): """ :allowed_param: memberId """ kwargs.update({'file': {'avatar': open(filename, 'rb')}}) return bind_api( api=self, path='/members/{memberId}/avatar/upload', method='POST', payload_type='json', allowed_param=['memberId'] )(*args, **kwargs)
def attach_file_to_idea(self, filename, *args, **kwargs): """ :allowed_param: ideaId """ kwargs.update({'file': {'attachment': open(filename, 'rb')}}) return bind_api( api=self, path='/ideas/{ideaId}/attach', method='POST', payload_type='idea', allowed_param=['ideaId'] )(*args, **kwargs)
def create_idea(self, *args, **kwargs): """ :allowed_param: 'title', 'text', 'campaignId', 'tags' (optional), 'customFields' (optional) """ kwargs.update({'headers': {'content-type': 'application/json'}}) return bind_api( api=self, path='/idea', method='POST', payload_type='idea', post_param=['title', 'text', 'campaignId', 'tags', 'customFields'])(*args, **kwargs)
def get_member_ideas(self, *args, **kwargs): """ :allowed_param: 'memberId' :pagination_param: 'page_number', 'page_size' """ return bind_api( api=self, path='/members/{memberId}/ideas', payload_type='idea', payload_list=True, allowed_param=['memberId'], pagination_param=['page_number', 'page_size'] )(*args, **kwargs)
def get_ideas_campaign(self, *args, **kwargs): """ :allowed_param:'campaignId' :pagination_param: 'page_number', 'page_size', 'order_key' """ return bind_api( api=self, path='/campaigns/{campaignId}/ideas', payload_type='idea', allowed_param=['campaignId'], payload_list=True, pagination_param=['page_number', 'page_size', 'order_key'] )(*args, **kwargs)
def get_ideas_campaign(self, *args, **kwargs): """ :allowed_param:'campaignId' :pagination_param: 'page_number', 'page_size', 'order_key' """ return bind_api( api=self, path='/campaigns/{campaignId}/ideas', payload_type='idea', allowed_param=['campaignId'], payload_list=True, pagination_param=['page_number', 'page_size', 'order_key'])(*args, **kwargs)
def comment_comment(self, *args, **kwargs): """ :allowed_param: 'commentId', 'text' """ kwargs.update({'headers': {'content-type':'application/json'}}) return bind_api( api=self, path='/comments/{commentId}/comment', method='POST', payload_type='comment', allowed_param=['commentId'], post_param=['text'] )(*args, **kwargs)
def vote_down_idea(self, *args, **kwargs): """ :allowed_param: 'ideaId', 'myVote' (optional) """ kwargs.update({'headers': {'content-type':'application/json'}}) return bind_api( api=self, path='/ideas/{ideaId}/vote/down', method='POST', payload_type='vote', allowed_param=['ideaId'], post_param=['myVote'] )(*args, **kwargs)
def get_campaigns(self): return bind_api(api=self, path='/campaigns', payload_type='campaign', payload_list=True)
def get_all_votes_ideas(self): return bind_api(api=self, path='/ideas/votes', payload_type='vote', payload_list=True)
def get_all_votes_comments(self): return bind_api(api=self, path='/comments/votes', payload_type='vote', payload_list=True)
def get_archived_ideas(self): return bind_api(api=self, path='/campaigns/archived/ideas', payload_type='idea', payload_list=True)