api: Implement POST /realm/emoji<emoji_name>.
This commit is contained in:
		
							parent
							
								
									d478c91965
								
							
						
					
					
						commit
						3f2b11c345
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -864,6 +864,20 @@ class Client(object):
 | 
			
		|||
            method='GET'
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def upload_custom_emoji(self, emoji_name, file_obj):
 | 
			
		||||
        # type: (str, IO[Any]) -> Dict[str, Any]
 | 
			
		||||
        '''
 | 
			
		||||
            Example usage:
 | 
			
		||||
 | 
			
		||||
            >>> client.upload_custom_emoji(emoji_name, file_obj)
 | 
			
		||||
            {'result': 'success', 'msg': ''}
 | 
			
		||||
        '''
 | 
			
		||||
        return self.call_endpoint(
 | 
			
		||||
            'realm/emoji/{}'.format(emoji_name),
 | 
			
		||||
            method='POST',
 | 
			
		||||
            files=[file_obj]
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def get_realm_filters(self):
 | 
			
		||||
        # type: () -> Dict[str, Any]
 | 
			
		||||
        '''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue