def get_feedback_in_stack(self, stackid, offset=0, limit=10):

        """Fetch feedback messages in a stack

        :param stackid: Id of the stack
        :param offset: the pagination offset
        :param limit: the pagination limit
        """

        if self.standard_grant_type is not "authorization_code":
            raise DeviantartError("Authentication through Authorization Code (Grant Type) is required in order to connect to this endpoint.")

        response = self._req('/messages/feedback/{}'.format(stackid), {
            'offset' : offset,
            'limit' : limit
        })

        messages = []

        for item in response['results']:

            m = Message()
            m.from_dict(item)

            messages.append(m)

        return {
            "results" : messages,
            "has_more" : response['has_more'],
            "next_offset" : response['next_offset']
        }
def get_feedback_in_stack ( self , stackid , offset = 0 , limit = 10 ) : if self . standard_grant_type is not "authorization_code" : raise DeviantartError ( "Authentication through Authorization Code (Grant Type) is required in order to connect to this endpoint." ) response = self . _req ( '/messages/feedback/{}' . format ( stackid ) , { 'offset' : offset , 'limit' : limit } ) messages = [ ] for item in response [ 'results' ] : m = Message ( ) m . from_dict ( item ) messages . append ( m ) return { "results" : messages , "has_more" : response [ 'has_more' ] , "next_offset" : response [ 'next_offset' ] }
Fetch feedback messages in a stack

        :param stackid: Id of the stack
        :param offset: the pagination offset
        :param limit: the pagination limit