Sha256: c1cd3fa86a9ef9f51d1e30d699f5036469ac624f8184a7843c2f02a20f122959

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

module MarketoApi
  module API
    module Workspaces
      include Base

      # Public: Returns an array of workspaces for the current user.
      # Example
      # client.user_workspaces
      # => [{
      #       "id": 102,
      #       "name": "A cool Marketo workspace",
      #       "description": "This workspace is amazing!",
      #       "globalViz": 0,
      #       "status": "active",
      #       "currencyInfo": nil,
      #       "createdAt": "20180112T18:07:09.0t+0000",
      #       "updatedAt": "20180112T18:07:09.0t+0000"
      #    }]

      def user_workspaces
        get("userservice/lm/v1/workspaces/")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marketo_api-0.3.0.pre.alpha lib/marketo_api/api/workspaces.rb
marketo_api-0.1.1.pre.alpha lib/marketo_api/api/workspaces.rb