#NEWLINE# def create( self , service , repo_slug = None , **kwargs ) : #NEWLINE# #INDENT# " Add a service (hook) to one of your repositories.\n            Each type of service require a different set of additionnal fields,\n            you can pass them as keyword arguments (fieldname='fieldvalue').\n        " #NEWLINE# repo_slug = ( repo_slug or self . bitbucket . repo_slug or '' ) #NEWLINE# url = self . bitbucket . url ( 'SET_SERVICE' , username = self . bitbucket . username , repo_slug = repo_slug ) #NEWLINE# return self . bitbucket . dispatch ( 'POST' , url , auth = self . bitbucket . auth , type = service , ** kwargs )