def collection_list
      page = 1
      not_done = true
      count = 0
      while not_done
        current_path = '/api/v1/collections?page=' << page.to_s
        res = @conn.get(current_path)
        if res['collections'] == []
          not_done = false
        elsif !res['message'].nil?
          return { 'message' => res['message'] }
        elsif page == 1
          count = res['count']
          collections = res['collections']
        else
          res['collections'].each do |collection|
            collections << collection
          end
        end
        page += 1
      end
      { 'count' => count, 'collections' => collections }
    end
def collection_list
      page = 1
      not_done = true
      count = 0
      while not_done
        current_path = '/api/v1/collections?page=' << page.to_s
        res = @conn.get(current_path)
        if res['collections'] == []
          not_done = false
        elsif !res['message'].nil?
          return { 'message' => res['message'] }
        elsif page == 1
          count = res['count']
          collections = res['collections']
        else
          res['collections'].each do |collection|
            collections << collection
          end
        end
        page += 1
      end
      { 'count' => count, 'collections' => collections }
    end
Gets the complete list of collections
 Makes multiple requests to the factory to get all the collections on the factory
 @return [Hash{'count' => Integer, 'sites' => Hash}]