package guestbook;import javax.inject.Named;import com.google.api.server.spi.config.Api;@Apipublic class GreetingsEndpoint { public Greeting getGreeting(@Named("id") Integer id) { return createGreeting(id); } public Greeting[] listGreetings() { Greeting[] greetings = new Greeting[] { createGreeting(1), createGreeting(2) }; return greetings; } private Greeting createGreeting(Integer id) { Greeting greeting = new Greeting(); greeting.setMessage("Hello " + id); return greeting; }}
// get a secure URL for uploading a private fileURL url = blobEndpoint.getUploadUrl("receipts", getReceiptFileName(),"PRIVATE") .execute().getShortLivedUrl());
// get a secure URL for downloading a fileURL url = blobEndpoint.getDownloadUrl("receipts", getReceiptFileName()) .execute().getShortLivedUrl());
Use promo code NEXT1720 to save $300 off general admission