BrightSignNetwork (BSN) Main A...
SOAP API
Content APIs
35min
content entity the content entity has the following properties id int (read only) the identifier and primary key of the content entity filename string the virtual name of the file represented by the current content instance this string may differ from the file name on the client device before being uploaded this property can be set by both client and server, and is used in many capacities both within bsn and on devices physicalpath string (read only) an external url for the associated file contained in persistent storage virtualpath string a virtual path to the associated file within the library of the bsn account type contenttype (read only) the simplified content type of the associated file this property is represented with a contenttype enumeration value filesize long (read only) the size of the associated file in bytes filehash string (read only) the sha1 hash of the associated file thumbpath string (read only) an external url for the file thumbnail image contained in persistent storage uploaddate datetime (read only) a utc timestamp indicating when the associated file was uploaded to bsn filelastmodifieddate datetime a value representing the last time the associated file was modified on the user storage (e g the "date modified" value in windows) this property is set during the content upload process it can also be set by the client or server at any time dynamicplaylists dynamicplaylistinfo\[] (read only) an array of dynamicplaylistinfo structures that denote parent dynamic playlists presentations presentationinfo\[] (read only) an array of presentationinfo structures that denote parent presentations contentfolder entity the contentfolder entity has the following properties id int (read only) the identifier and primary key of the contentfolder entity accountid int (read only) the identifier of the account that owns the contentfolder entity name string the user defined name of the folder represented by the contentfolder instance this name must be unique in the scope of the parent folder virtualpath string a virtual path to the associated folder within the library of the bsn account (for example, “\shared\incoming\” or “\users\jdoe\@example com\home\”) thumbpath string (read only) an external url for the file thumbnail image contained in persistent storage creationdate datetime (read only) a utc timestamp indicating when the associated folder was created in bsn contenttype enumeration the contenttype enumeration specifies the type of the file associated with the content instance it has the following properties image a jpg, png, or bmp image file video an mpg, mp4, ts, mov, vob, or wmv video file audio an mp3 or wav audio file other an unknown file type contenttransition enumeration the contenttransition enumeration represents the screen effect that is shown during the transition between the previous presentation state and the current content state it has the following properties noeffect wipefromtop wipefrombottom wipefromleft wipefromright explodefromcenter explodefromtopleft explodefromtopright explodefrombottomleft explodefrombottomright venetianblindsvertical venetianblindshorizontal combvertical combhorizontal fadetobackground fadetonewimage slidetop slidebottom slideleft slideright dynamicplaylistcontent entity relation the dynamicplaylistcontent entity relation represents associations between content and imagevideodynamicplaylist or audiodynamicplaylist instances it has the following properties contentid int the identifier and primary key of the associated content instance this value can be set by both client and server filename string the virtual name of the file represented by the current content instance displayduration timespan the amount of time that the device displays an associated image this property does not apply to audio or video files validitystartdate datetime a value that determines the validity start date for the associated content item (i e the point at which the content item will start being displayed in the dynamic playlist) a null value determines that the content item is valid from the moment it is added to the dynamic playlist; this is the standard case for most content items validityenddate datetime a value that determines the validity end date for the associated content item (i e the point at which the content item will no longer be displayed in the dynamic playlist) a null value determines that the content item will be valid until it is removed from the dynamic playlist manually by the user; this is the standard case for most content items presentationcontent entity relation the presentationcontent entity relation represents the association between content and presentation instances it has the following properties id int (read only) the identifier and primary key of the presentationcontent entity relation name string the user defined name of the related presentation item this value can represent the name of a content file, feed, video stream, live video, or rf in object when the entity relation represents the relationship between a presentation instance and a content instance, this property contains the virtual name of the content file alternatively, when the entity relation represents the relationship between a presentation instance and a imagevideodynamicplaylist/audiodynamicplaylist instance, this property contains the name string of the dynamic playlist statename string the name of the playlist state that corresponds to the associated content instance this value is optional imagecontent entity relation the imagecontent entity relation represents the association between a presentation instance and an image content instance contentid int the identifier and primary key of the associated content instance displayduration timespan the amount of time that the device displays the associated image transition contenttransition a contenttransition enumeration representing the screen effect that is shown during the transition between the previous presentation state and the current content state (i e the associated content state) backgroundimagecontent entity relation the backgroundimagecontent entity relation represents the association between a presentation instance and an image content instance contentid int the identifier and primary key of the associated content instance videocontent entity relation the videocontent entity relation represents the association between a presentation instance and a video content instance contentid int the identifier and primary key of the associated content instance volume byte the volume level of the video as a percentage audiocontent entity relation the audiocontent entity relation represents the association between a presentation instance and an audio content instance contentid int the identifier and primary key of the associated content instance volume byte the volume level of the audio track as a percentage mediarssfeedcontent entity relation the mediarssfeedcontent entity relation represents the association between a presentation instance and a dynamicplaylist instance dynamicplaylistid int the identifier and primary key of the associated dynamicplaylist instance webpagecontent entity relation the webpagecontent entity relation represents the association between a presentation instance and a webpage instance webpageid int the identifier and primary key of the associated webpage instance displayduration timespan the amount of time that the player will display the page a zero value specifies an unlimited playback interval videostreamcontent entity relation the videostreamcontent entity relation represents the association between a presentation instance and a streaming video object url string the absolute uri of the video stream playbackduration timespan the amount of time the player will play the video stream a zero value specifies an unlimited playback interval livevideocontent entity relation the livevideocontent entity relation represents the association between a presentation instance and an hdmi ® input object playbackduration timespan the amount of time the player will play video from the hdmi input a zero value specifies an unlimited playback interval volume byte the volume level of the hdmi input as a percentage radioinputcontent entity relation the radioinputcontent entity relation represents the association between a presentation instance and an rf input object channel radiochannel a virtualradiochannel or customradiochannel structure specifying the channel tuning settings for the rf input object reentryaction radiostatereentryaction a radiostatereentryaction enumeration specifying how the rf tuner should behave when the player returns to the rf input object playbackduration timespan the amount of time the player will play video from the rf input a zero value specifies an unlimited playback interval volume byte the volume level of the rf input video as a percentage overscan bool a flag specifying whether or not overscan settings should be applied to the rf input video virtualradiochannel structure the virtualradiochannel structure has the following parameters channel string the virtual number of the channel customradiochannel structure the customradiochannel structure has the following parameters channel string the name of the channel virtualchannel string the virtual number of the channel radiostatereentryaction enumeration the radiostatereentryaction enumeration has the following parameters retune instructs the player to retune to a channel every time the rf input object is encountered in a playlist remainonlasttuned instructs the player to remain on the last tuned channel when the rf input object is encountered again in a playlist dynamicplaylistinfo structure the dynamicplaylistinfo structure provides information about a parent imagevideodynamicplaylist or audiodynamicplaylist instance it has the following properties id int (read only) the identifier and primary key of the instance name string the user defined name of the instance this string value is an alternate key that is unique in the scope of the brightsign network account presentationinfo structure the presentationinfo structure provides information about a parent presentation instance it has the following properties id int (read only) the identifier and primary key of the presentation instance name string the user defined name of the presentation instance this string value must be unique in the scope of the brightsign network account content management web methods content update and creation operations can only be performed by the file upload service pagedlist\<content> getallcontent(string marker, int pagesize) retrieves the next page of the content list, sorted alphabetically by \[string] filename the returned list will contain no more items than the defined page size this method only supports retrieval of image, audio, and video file types required permissions content view content parameters marker string the filename string of the last content instance on the previous page if the value is null, then the method will retrieve the first page pagesize int the maximum number of objects returned by the method if the list of objects that match the search criteria exceeds the pagesize int limit, the returned list will indicate that it is truncated if the integer is not positive, then the method will return the maximum allowed number of objects attempting to request more objects than is allowed will lead to the same result, but without an error list\<contentfolder> getcontentfolders(string virtualpath) retrieves all levels of subfolders that are part of the parent contentfolder entity, which is specified using its virtual path the returned list will contain no more items than the defined page size required permissions content view content parameters virtualpath string the virtual path of the parent contentfolder entity containing the requested subfolders the root virtual path is “\” pagedlist\<content> getfoldercontent(string virtualpath, string marker, int pagesize) retrieves the first level of files within the parent contentfolder entity, which is specified using its virtual path the returned list is organized by file name and may not contain more items than the defined page size this method only supports retrieval of image, audio, and video file types required permissions content view content parameters virtualpath string the virtual path of the parent contentfolder entity the root virtual path is “\” marker string the filename string of the last content instance on the previous page if the value is null, then the method will retrieve the first page pagesize int the maximum number of objects returned by the method if the list of objects that match the search criteria exceeds the pagesize int limit, the returned list will indicate that it is truncated if the integer is not positive, then the method will return the maximum allowed number of objects attempting to request more objects than is allowed will lead to the same result, but without an error list\<content> getspecifiedcontent(int\[] contentids) retrieves a list of content instances matching the specified identifiers the results are sorted alphabetically by content filename string the identifiers of nonexistent content instances will be ignored required permissions content view content parameters contentids int\[] an array of id int values for the content instances being requested the maximum number of items is limited to 100 by the server attempting to request more than the maximum allowed number of objects will cause an error, while passing an empty array will lead to an immediate empty response without an error pagedlist\<content> findcontent(string filenamepattern, string marker, int pagesize) retrieves the next page of a content list containing file names matched with the specified pattern the returned list is organized by filename string and may not contain more items than the defined page size this method only supports retrieval of image, audio, and video file types required permissions content view content parameters filenamepattern string the exact filename string of the content instance (or its wildcard based pattern) supported wildcards currently include “ ”, “?”, and “\[‘and’]” marker string the filename string of the last content instance on the previous page pagesize int the maximum number of objects returned by the method if the list of objects that match the search criteria exceeds the pagesize int limit, the returned list will indicate that it is truncated if the integer is not positive, then the method will return the maximum allowed number of objects attempting to request more objects than is allowed will lead to the same result, but without an error content getcontent(int contentid) retrieves a single content instance with the specified identifier this method returns null if there are no content instances containing the specified identifier this method only supports retrieval of image, audio, and video file types required permissions content view content parameters contentid int the identifier and primary key of the associated content instance contentfolder createcontentfolder(contentfolder entity) creates a new virtual folder within the bsn library the folder will have a specified name and location defined by its virtual path this method returns the newly created object with all initialized properties (or null if an error occurs during the creation process) required permissions content view content parameters entity contentfolder a contentfolder instance with an initialized name string, virtualpath string, and thumbpath string (if needed) all other property values for the contentfolder instance will be ignored if this parameter is set to null, then the method will immediately return null without error a descriptive error will be returned to the client if any of the following conditions occur the virtualpath string of the initialized contentfolder does not contain a leading slash(“\”) the thumbpath string does not begin with an absolute uri (i e “http //” or “https //”) the name string of the initialized contentfolder is more than 128 characters a contentfolder instance within the same parent folder has the same name bool movecontent(int\[] contentids, string newvirtualpath) moves the specified content and/or contentfolder instances to the specified virtual folder this method returns true upon success and false upon failure required permissions content update content parameters contentids int\[] an array of id int values for the content and/or contentfolder instances that will be updated the number of items is limited to 100 by the server attempting to request more than the maximum allowed number of objects will cause an error if the client passes an empty array, or if none of the identifiers in the array match existing content instances, the server will immediately return an empty response without an error newvirtualpath string the new virtual path for the specified content and/or contentfolder instances (e g “\shared\incoming\”) bool checkcontentusage(int contentid) determines whether the specified content instance is referenced by presentations, dynamic playlists, web pages, or device web pages this method returns true if the specified content instance has parent dependencies (i e it is in use) note that this method only supports retrieval of image, audio, and video file types also note that when using this method to check whether a content instance can be deleted, a false (“not in use”) status may change in the time between calling this method and calling deletecontent() required permissions content view content parameters contentid int the identifier and primary key of the associated content instance if there are no content instances with the specified identifier, this method will return false without an error bool deletecontent(int\[] contentids) deletes the specified content and contentfolder instances, as well as any associated files, in both the database and persistent storage this method returns true only if the operation was completely successful none of the affected instances can be in use by any presentation, dynamic playlist, web page, or device webpage in these cases a descriptive error will be returned to the client required permissions content delete content parameters contentids int\[] an array of id int values reflecting the content instances to be deleted the maximum number of items is limited to 100 by the server attempting to request more than the allowed number of objects will cause an error a descriptive error will be returned if one or more content id int is invalid if the client passes an empty array, or if none of the identifiers in the array match existing content instances, the server will immediately return an empty response without an error