api: Implement GET /realm/presence endpoint.
This commit is contained in:
		
							parent
							
								
									8b0fa6bfee
								
							
						
					
					
						commit
						ed706c24ce
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1017,6 +1017,19 @@ class Client(object):
 | 
			
		|||
            method='GET',
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def get_realm_presence(self):
 | 
			
		||||
        # type: () -> Dict[str, Any]
 | 
			
		||||
        '''
 | 
			
		||||
            Example usage:
 | 
			
		||||
 | 
			
		||||
            >>> client.get_realm_presence()
 | 
			
		||||
            {'presences': {...}, 'result': 'success', 'msg': ''}
 | 
			
		||||
        '''
 | 
			
		||||
        return self.call_endpoint(
 | 
			
		||||
            url='realm/presence',
 | 
			
		||||
            method='GET',
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def update_presence(self, request):
 | 
			
		||||
        # type: (Dict[str, Any]) -> Dict[str, Any]
 | 
			
		||||
        '''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue