overview package class tree deprecated index help com.samsung.android.penup class artworkapi java.lang.object com.samsung.android.penup.artworkapi public class artworkapi extends java.lang.object this class sends requests related to artwork information. since: pen.up 1.0 method summary methods modifier and type method and description static void getallartworks(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets all artworks of pen.up. static void getartwork(penupclient penupclient, java.lang.string artworkid, resourcecallback<artworkresource> resourcecallback) gets the artwork with the specified id. static void getartworksbyapp(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks posted via your application. static void getartworksbyartist(penupclient penupclient, java.lang.string artistid, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the specified artist has posted or reposted. static void getartworksbycollection(penupclient penupclient, java.lang.string collectionid, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks included in the specified collection. static void getartworksbytag(penupclient penupclient, java.lang.string tagid, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks included in the specified tag. static void getmyartworks(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the user has posted or reposted. static void getmyfeed(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets the user's feed. static void getmyposts(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the user has posted. static void getmyreposts(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the user has reposted. static void getpopularartworks(penupclient penupclient, period period, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets popular artworks. static void getpopularartworksbyapp(penupclient penupclient, period period, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets popular artworks posted via your application. static void getpopularartworksbytag(penupclient penupclient, java.lang.string tagid, period period, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets popular artworks by the specified tag. static void launchpostdialog(penupclient penupclient, uri imageuri, resourcecallback<artworkresource> resourcecallback) launches the post dialog which provides a simple and consistent user interface to post an artwork easily. static void postartwork(penupclient penupclient, artworkresource artworkresource, uri imageuri, resourcecallback<artworkresource> resourcecallback) posts the specified artwork. method detail getartwork public static void getartwork(penupclient penupclient, java.lang.string artworkid, resourcecallback<artworkresource> resourcecallback) gets the artwork with the specified id. the scope.read_resources scope is required. parameters:penupclient - the penupclient instanceartworkid - the artwork idresourcecallback - the resourcecallback instance for receiving the artwork throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the artworkid is null or empty. the resourcecallback is null. since: pen.up 1.0 getartworksbyapp public static void getartworksbyapp(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks posted via your application. the scope.read_resources scope is required. parameters:penupclient - the penupclient instancemaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks posted via your application throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcecallback is null. since: pen.up 1.0 getartworksbyartist public static void getartworksbyartist(penupclient penupclient, java.lang.string artistid, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the specified artist has posted or reposted. the scope.read_resources scope is required. parameters:penupclient - the penupclient instanceartistid - the artist idmaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks that the specified artist has posted or reposted throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the artistid is null or empty. the maxresults is less than 1 or greater than 100. the resourcecallback is null. since: pen.up 1.0 getartworksbycollection public static void getartworksbycollection(penupclient penupclient, java.lang.string collectionid, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks included in the specified collection. the scope.read_resources scope is required. parameters:penupclient - the penupclient instancecollectionid - the collection idmaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks included in the specified collection throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the collectionid is null or empty. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getartworksbytag public static void getartworksbytag(penupclient penupclient, java.lang.string tagid, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks included in the specified tag. the scope.read_resources scope is required. parameters:penupclient - the penupclient instancetagid - the tag idmaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks included in the specified tag throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the tagid is null or empty. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getallartworks public static void getallartworks(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets all artworks of pen.up. the scope.read_resources scope is required. parameters:penupclient - the penupclient instancemaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving all artworks throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getmyartworks public static void getmyartworks(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the user has posted or reposted. the scope.read_my_resources scope is required. parameters:penupclient - the penupclient instancemaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks that the user has posted or reposted throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getmyposts public static void getmyposts(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the user has posted. the scope.read_my_resources scope is required. parameters:penupclient - the penupclient instancemaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks that the user has posted throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getmyreposts public static void getmyreposts(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets artworks that the user has reposted. the scope.read_my_resources scope is required. parameters:penupclient - the penupclient instancemaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks that the user has reposted throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getmyfeed public static void getmyfeed(penupclient penupclient, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets the user's feed. the scope.read_my_resources scope is required. parameters:penupclient - the penupclient instancemaxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the user's feed throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getpopularartworks public static void getpopularartworks(penupclient penupclient, period period, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets popular artworks. the scope.read_resources scope is required. parameters:penupclient - the penupclient instanceperiod - the period for popularities of artworks. month and week means the latest month and week.maxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the popular artworks throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 getpopularartworksbyapp public static void getpopularartworksbyapp(penupclient penupclient, period period, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets popular artworks posted via your application. the scope.read_resources scope is required. parameters:penupclient - the penupclient instanceperiod - the period for popularities of artworks. month and week means the latest month and week.maxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the artworks posted via your application throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the maxresults is less than 1 or greater than 100. the resourcecallback is null. since: pen.up 1.0 getpopularartworksbytag public static void getpopularartworksbytag(penupclient penupclient, java.lang.string tagid, period period, int maxresults, java.lang.string pagetoken, resourcelistcallback<artworkresource> resourcelistcallback) gets popular artworks by the specified tag. the scope.read_resources scope is required. parameters:penupclient - the penupclient instancetagid - the tag idperiod - the period for popularities of artworks. month and week means the latest month and week.maxresults - the maximum number of artworks to include in the response, which is used for paging. the value should be between 1 and 100.pagetoken - the page token obtained from resourcelistcallback for getting the specific page. sets null to get the first page.resourcelistcallback - the resourcelistcallback instance for receiving the popular artworks by the specified tag throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the tagid is null or empty. the maxresults is less than 1 or greater than 100. the resourcelistcallback is null. since: pen.up 1.0 postartwork public static void postartwork(penupclient penupclient, artworkresource artworkresource, uri imageuri, resourcecallback<artworkresource> resourcecallback) posts the specified artwork. the scope.post_resources scope is required. parameters:penupclient - the penupclient instanceartworkresource - the artworkresource instance including the artwork information in order to postimageuri - the uri of the image to post. only png and jpg files are supported.resourcecallback - the resourcecallback instance throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the artworkresource is null. the imageuri is invalid or null. the imageuri is neither a png file nor a jpg file. the resourcecallback is null. since: pen.up 1.0 launchpostdialog public static void launchpostdialog(penupclient penupclient, uri imageuri, resourcecallback<artworkresource> resourcecallback) launches the post dialog which provides a simple and consistent user interface to post an artwork easily. the progress dialog is displayed while uploading an artwork with post dialog. the scope.post_resources scope and scope.read_my_resources scope are required. parameters:penupclient - the penupclient instanceimageuri - the uri of the image to post. only png and jpg files are supported.resourcecallback - the resourcecallback instance throws: java.lang.illegalargumentexception - thrown when either of the following conditions has occurred: the penupclient is null. the imageuri is invalid or null. the imageuri is neither a png file nor a jpg file. the resourcecallback is null. since: pen.up 1.0