@Protocol(charset="UTF-8") @ApplicationPath(value="https://json.schedulesdirect.org/") public interface SDProtocol
| Modifier and Type | Interface and Description |
|---|---|
static class |
SDProtocol.GetLineupsResponse
getLineups(String) return type. |
static class |
SDProtocol.GetStatusResponse
getStatus(String) return type. |
static class |
SDProtocol.GetVersionResponse
getVersion(String) return type. |
static class |
SDProtocol.LineupElement
getStatus(String) line-up element. |
static class |
SDProtocol.PostTokenResponse
postToken(HttpEntity) return type. |
static class |
SDProtocol.Schedules
postSchedules(String,Collection) return type. |
@POST @Path(value="20141201/token") SDProtocol.PostTokenResponse postToken(HttpEntity entity) throws HttpResponseException, ClientProtocolException, IOException
entity - The user's credentials.SDProtocol.PostTokenResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.default SDProtocol.PostTokenResponse postToken(File file) throws HttpResponseException, ClientProtocolException, IOException
file - The user's credential File.SDProtocol.PostTokenResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/status") SDProtocol.GetStatusResponse getStatus(@HeaderParam(value="") String token) throws HttpResponseException, ClientProtocolException, IOException
token - The token.SDProtocol.GetStatusResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/version/{client}") SDProtocol.GetVersionResponse getVersion(@PathParam(value="") String client) throws HttpResponseException, ClientProtocolException, IOException
client - The client identifier.SDProtocol.GetVersionResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/available") JsonNode getAvailable() throws HttpResponseException, ClientProtocolException, IOException
JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/available/countries") JsonNode getAvailableCountries() throws HttpResponseException, ClientProtocolException, IOException
JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/available/languages") JsonNode getAvailableLanguages() throws HttpResponseException, ClientProtocolException, IOException
JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/headends") List<Headend> getHeadends(@HeaderParam(value="") String token, @QueryParam(value="") String country, @QueryParam(value="") String postalcode) throws HttpResponseException, ClientProtocolException, IOException
token - The token.country - The country.postalcode - The postal (ZIP) code.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/lineups") SDProtocol.GetLineupsResponse getLineups(@HeaderParam(value="") String token) throws HttpResponseException, ClientProtocolException, IOException
token - The token.SDProtocol.GetLineupsResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@DELETE @Path(value="20141201/lineups/{lineup}") JsonNode deleteLineup(@HeaderParam(value="") String token, @PathParam(value="") String lineup) throws HttpResponseException, ClientProtocolException, IOException
token - The token.lineup - The line-up to be deleted.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@PUT @Path(value="20141201/lineups/{lineup}") JsonNode putLineup(@HeaderParam(value="") String token, @PathParam(value="") String lineup) throws HttpResponseException, ClientProtocolException, IOException
token - The token.lineup - The line-up to add.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/lineups/{lineup}") Lineup getLineup(@HeaderParam(value="") String token, @HeaderParam(value="") Boolean verboseMap, @PathParam(value="") String lineup) throws HttpResponseException, ClientProtocolException, IOException
token - The token.verboseMap - Whether or not tp provide a verbose map.lineup - The lineup (may be null).Lineup.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/map/lineup/") JsonNode postLineup(@HeaderParam(value="") String token, HttpEntity entity) throws HttpResponseException, ClientProtocolException, IOException
token - The token.entity - The HttpEntity.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/map/lineup/{lineup}") JsonNode postLineup(@HeaderParam(value="") String token, @PathParam(value="") String lineup, HttpEntity entity) throws HttpResponseException, ClientProtocolException, IOException
token - The token.lineup - The lineup.entity - The HttpEntity.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/programs") List<Program> postPrograms(@HeaderParam(value="") String token, Collection<String> ids) throws HttpResponseException, ClientProtocolException, IOException
token - The token.ids - The program IDs.List of Programs.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/metadata/description") JsonNode postProgramsDescription(@HeaderParam(value="") String token, Collection<String> ids) throws HttpResponseException, ClientProtocolException, IOException
token - The token.ids - The program IDs.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/metadata/programs") JsonNode postProgramsMetadata(@HeaderParam(value="") String token, Collection<String> ids) throws HttpResponseException, ClientProtocolException, IOException
token - The token.ids - The program IDs.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/metadata/programs/{root}") JsonNode getProgramMetadata(@PathParam(value="") String root) throws HttpResponseException, ClientProtocolException, IOException
root - The root ID.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/schedules") List<SDProtocol.Schedules> postSchedules(@HeaderParam(value="") String token, Collection<Map<String,Object>> collection) throws HttpResponseException, ClientProtocolException, IOException
token - The token.collection - The Collection (use
SDClient.PostSchedulesMap.values()).List of SDProtocol.Schedules.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@POST @Path(value="20141201/schedules/md5") JsonNode postSchedulesMD5(@HeaderParam(value="") String token, Collection<Map<String,Object>> collection) throws HttpResponseException, ClientProtocolException, IOException
token - The token.collection - The Collection (use
SDClient.PostSchedulesMap.values()).JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/metadata/celebrity/{celebrity}") JsonNode getCelebrityMetadata(@PathParam(value="") String celebrity) throws HttpResponseException, ClientProtocolException, IOException
celebrity - The celebrity.JsonNode.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET @Path(value="20141201/image/assets/{uri}") HttpResponse getImage(@PathParam(value="") String uri) throws HttpResponseException, ClientProtocolException, IOException
uri - The relative URI path.HttpResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.@GET HttpResponse getImage(URI uri) throws HttpResponseException, ClientProtocolException, IOException
uri - The URI.HttpResponse.IOException - See ProtocolClient.HttpResponseException - See ProtocolClient.ClientProtocolException - See ProtocolClient.Copyright © 2015–2020 Allen D. Ball. All rights reserved.