lib/huginn_venmo_agents/read_venmo_timeline_agent.rb
def my_id
      if !memory['me'].nil?
        return memory['me']
      end

      resp = HTTP
        .auth("Bearer #{interpolated['venmo_token']}")
        .get("#{API_BASE}/me")

      json_resp = resp.parse
      memory['me'] = json_resp['data']['user']['id']
      return memory['me']
    end
# Returns the ID of the currently signed in user
Returns the ID of the currently signed in user
Returns the ID of the currently signed in user
def my_id
      if !memory['me'].nil?
        return memory['me']
      end
      resp = HTTP
        .auth("Bearer #{interpolated['venmo_token']}")
        .get("#{API_BASE}/me")
      json_resp = resp.parse
      memory['me'] = json_resp['data']['user']['id']
      return memory['me']
    end
def my_id if ! memory [ 'me' ] . nil? return memory [ 'me' ] end resp = HTTP . auth ( "Bearer #{interpolated['venmo_token']}" ) . get ( "#{API_BASE}/me" ) json_resp = resp . parse memory [ 'me' ] = json_resp [ 'data' ] [ 'user' ] [ 'id' ] return memory [ 'me' ] end
Returns the ID of the currently signed in user
Returns the ID of the currently signed in user