protected static PlaylistResource GeneratePlaylistResource() { var id = Guid.NewGuid().ToString(); var resource = new PlaylistResource { Id = id }; return(resource); }
public StreamioAPI(string username, string password) { RestClient client = new RestClient(BaseUrl); client.Authenticator = new HttpBasicAuthenticator(username, password); Videos = new VideoResource(client); Images = new ImageResource(client); Playlists = new PlaylistResource(client); Players = new PlayerResource(client); Audios = new AudioResource(client); EncodingProfiles = new EncodingProfileResource(client); PublicUploads = new PublicUploadResource(client); }