Sha256: 5e93cc503855e4296a0adff9488e7ef7f49129d68a729e93b4083dc4c5f74acc

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

require 'cts/mpx'

user = Cts::Mpx::User.create(username: 'username', password: '*****').sign_in
account = "http://access.auth.theplatform.com/data/Account/0000000000"
service = 'Media Data Service'
endpoint = 'Media'

# build our query, and immediately run it.
q = Query.create(account: account, service: service, endpoint: endpoint, fields: 'id,guid,title').run user: user

q.entries.each do |entry|
  entry.title += '!!!'
  entry.save
end

user.sign_out

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cts-mpx-1.2.0 examples/update_media.rb
cts-mpx-1.1.2 examples/update_media.rb
cts-mpx-1.1.1 examples/update_media.rb
cts-mpx-1.1.0 examples/update_media.rb
cts-mpx-1.0.3 examples/update_media.rb
cts-mpx-1.0.2 examples/update_media.rb
cts-mpx-1.0.1 examples/update_media.rb