def get(self, cmd, args, options):

			pop = options['pop']
			exoconfig = options['config']
			ExoException = options['exception']
			key = exoconfig.config['vendortoken']

			# This should be in the pyonep.provision class. It is not.
			# This should loop through chunks, not fully pull the file into RAM.
			path = '/provision/manage/content/' + args['<model>'] + '/' + args['<id>'] + '?download=true'
			headers = {"Accept": "*"}
			mlist = pop._request(path, key, '', 'GET', False, headers)

			try:
				if args['<file>'] == '-':
					sys.stdout.write(mlist.body)
				else:
					with open(args['<file>'], 'wb') as f:
						#print('debug', mlist.response.content)
						f.write(mlist.response.content)
			except IOError as ex:
				raise ExoException("Could not write {0}".format(args['<file>']))
Get content blob.
dataset/ETHPy150Open exosite/exoline/exoline/plugins/provision.py/Plugin.content.get