<s> """<STR_LIT>""" <EOL> try : <EOL> import json <EOL> except ImportError : <EOL> import simplejson as json <EOL> import datetime <EOL> import util <EOL> from proxies import ResultList <EOL> def list ( sandbox_name , results = <NUM_LIT:15> , start = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> result = util . callm ( "<STR_LIT>" % ( '<STR_LIT>' , '<STR_LIT:list>' ) , { '<STR_LIT>' : sandbox_name , '<STR_LIT>' : results , '<STR_LIT:start>' : start } ) <EOL> assets = result [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> start = result [ '<STR_LIT>' ] [ '<STR_LIT:start>' ] <EOL> total = result [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> return ResultList ( assets , start , total ) <EOL> def access ( sandbox_name , asset_ids ) : <EOL> """<STR_LIT>""" <EOL> result = util . oauthgetm ( "<STR_LIT>" % ( '<STR_LIT>' , '<STR_LIT>' ) , { '<STR_LIT>' : sandbox_name , '<STR_LIT:id>' : asset_ids } ) <EOL> return result [ '<STR_LIT>' ] [ '<STR_LIT>' ] </s>
