@GET("/maps/api/streetview?") @Streaming Call<ResponseBody> getStreetView(@Query("size") String size, @Query("location") String location, @Query("heading") String heading, @Query("pitch") String pitch, @Query("fov") String fov, @Query("key") String key);
/** * Convert a file to HTML and retrieve the result as a stream containing the HTML using the given token * @param token The token to use to authenticate the request * @param file The file to view * @param params Additional parameters to use for the request * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the * html. This stream must be closed after use. * @throws HodErrorException */ @POST(URL) @Multipart @Streaming Response viewFile( @Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file, @PartMap Map<String, Object> params ) throws HodErrorException;
/** * Convert an object store object to HTML and retrieve the result as a stream containing the HTML using the given * token * @param token The token to use to authenticate the request * @param reference The object store reference to view * @param params Additional parameters to use for the request * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the * html. This stream must be closed after use. * @throws HodErrorException */ @GET(URL) @Streaming Response viewReference( @Header("token") AuthenticationToken<?, ?> token, @Query("reference") String reference, @QueryMap Map<String, Object> params ) throws HodErrorException;
/** * Convert publicly accessible url to HTML and retrieve the result as a stream containing the HTML using the given * token * @param token The token to use to authenticate the request * @param url The url to view * @param params Additional parameters to use for the request * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the * html. This stream must be closed after use. * @throws HodErrorException */ @GET(URL) @Streaming Response viewUrl( @Header("token") AuthenticationToken<?, ?> token, @Query("url") String url, @QueryMap Map<String, Object> params ) throws HodErrorException;
/** * This method uses Retrofit's @Streaming annotation to indicate that the * method is going to access a large stream of data (e.g., the mpeg video * data on the server). The client can access this stream of data by obtaining * an InputStream from the Response as shown below: * * VideoSvcApi client = ... // use retrofit to create the client * Response response = client.getData(someVideoId); * InputStream videoDataStream = response.getBody().in(); * * @param id * @return */ @Streaming @GET(VIDEO_DATA_PATH) Response getData(@Path(ID_PARAMETER) long id);
/** * This method uses Retrofit's @Streaming annotation to indicate * that the method is going to access a large stream of data * (e.g., the mpeg video data on the server). The client can * access this stream of data by obtaining an InputStream from the * Response as shown below: * * VideoServiceProxy client = ... // use retrofit to create the client * Response response = client.getData(someVideoId); * InputStream videoDataStream = response.getBody().in(); * * @param id * @return Response which contains the actual Video data. */ @Streaming @GET(VIDEO_DATA_PATH) Response getData(@Path(ID_PARAMETER) long id);
/** * This method uses Retrofit's @Streaming annotation to indicate that the * method is going to access a large stream of data (e.g., the mpeg video * data on the server). The client can access this stream of data by obtaining * an InputStream from the Response as shown below: * * VideoSvcApi client = ... // use retrofit to create the client * Response response = client.getData(someVideoId); * InputStream videoDataStream = response.getBody().in(); * * @param id * @return */ @Streaming @GET(VIDEO_DATA_PATH) Response getVideoData(@Path(ID_PARAMETER) long id);
/** * This endpoint should return the video data that has been associated with * a Video object or a 404 if no video data has been set yet. The URL scheme * is the same as in the method above and assumes that the client knows the ID * of the Video object that it would like to retrieve video data for. * * This method uses Retrofit's @Streaming annotation to indicate that the * method is going to access a large stream of data (e.g., the mpeg video * data on the server). The client can access this stream of data by obtaining * an InputStream from the Response as shown below: * * VideoSvcApi client = ... // use retrofit to create the client * Response response = client.getData(someVideoId); * InputStream videoDataStream = response.getBody().in(); * * @param id * @return */ @Streaming @GET(VIDEO_DATA_PATH) Response getData(@Path(ID_PARAMETER) long id);
@GET("/{path}") @Streaming Response oobInclude(@EncodedPath("path") String path);