google-cloud-endpoints

SendGrid not working in Google app engine endpoints

你说的曾经没有我的故事 提交于 2020-01-26 03:57:09
问题 I need to send info to the google endpoint, which then sets up object with Sendgrid and then sends the email. The emails are not working, nothing is sent through from the app engine. Part of my endpoint code: @ApiMethod(name = "sendEmail") public sendEmailObject sendEmail(@Named("sendTo") String sendTo, @Named("sentFromClient") String sentFromClient, @Named("sendDescription") String sendDescription) { SendGrid sendgrid = new SendGrid(..., ...); SendGrid.Email email = new SendGrid.Email();

Can gapi.client.load for cloud endpoints return a promise?

拜拜、爱过 提交于 2020-01-25 10:54:27
问题 A google gapi.client.load for a google api can return a promise as discussed here. However, if you wish to use the javascript client for your own app engine component using cloud endpoints, the gapi.client.load has a different method signature, as shown in this angular post: gapi.client.load('guestbook', 'v1', function() { $scope.is_backend_ready = true; $scope.list(); }, '/_ah/api'); Here, there is a fourth parameter and it is not the success function. So I'm not sure how a promise can be

GAE - Getter without Setter - How to prevent client from writing a given property? How to prevent client from modifying the object ID?

折月煮酒 提交于 2020-01-25 10:37:06
问题 I am writing against Google App Engine using Java and Android Studio. Tools, Install Client Libraries creates a model for the frontend from backend classes. This works well. Now, I have realized that getters and setters are always generated for the client as part of the class model, or at least whenever I use a getter, a setter is auto-generated for the same property. I understand that REST needs to have getters and setters exposed to serialize and deserialize on both sides. But what happens

Call google endpoint frameworks from node.js application

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-25 07:04:55
问题 I need to call API's created using google cloud endpoint framework from my node.js applications. How I will be able to complete auth process and call the above APIs? Is it possible from node.js application to access the API's? 回答1: According to the official documentation, Cloud Endpoints Framework is a web framework for the App Engine standard (only) Python 2.7 and Java 8 runtime environments. It doesn’t support Node.js (nor PHP, Go) runtime environments. =====================================

Google Cloud Endpoint API returns 500 error

扶醉桌前 提交于 2020-01-25 00:35:06
问题 I applied the answer found in HTTP code 302 encountered when deploying on Google App Engine Endpoints The 302 problem is gone, the API has become visible in the deployed application, but now I'm getting this error: { "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "Internal Error" } ], "code": 500, "message": "Internal Error" } } The application log shows the 200 response for this request though: 2013-03-07 18:57:10.992 /_ah/spi/DeviceSyncEndPoint

Use Cron jobs with Appengine Endpoints API

╄→гoц情女王★ 提交于 2020-01-24 00:31:09
问题 I have developed a backend using Google App engine and Endpoints API. One of Api Method is a job that should run every X hours and do some logical stuff. my Question is how can I call this api method using Cron Job. I know the URL of the Api Method and i even succeed call her using the browser. but when I try call it with the cron job, the job was failed with 404 error code. here the cron.xml: <?xml version="1.0" encoding="UTF-8"?> <cronentries> <cron> <url>/_ah/api/meetingMatchingEndpoint/v1

Nullpointerexception throws when inserting entity using Auto-generated Classendpoint insert method

时间秒杀一切 提交于 2020-01-21 07:04:15
问题 I am confused to using auto-generated endpoint class. I want to use generated endpoint to insert new object into datastore. But, an exception is throwing. fooEndpoint.insertFoo(foo); // throws null pointer exception My entity class is similar with the given example at this source: https://developers.google.com/appengine/docs/java/datastore/jpa/overview. Here is my entity: @Entity public class Foo { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private Key ID; Here is the stack trace:

Error when trying to retrieve a single entity

耗尽温柔 提交于 2020-01-15 09:12:09
问题 I've been playing around with Google Cloud Endpoints for the past few days (aiming to hook it up with AngularJS) and I ran into a bit of trouble when I try to retrieve a single entity from my datastore. My ndb model setup is: class Ingredients(EndpointsModel): ingredient = ndb.StringProperty() class Recipe(EndpointsModel): title = ndb.StringProperty(required=True) description = ndb.StringProperty(required=True) ingredients = ndb.StructuredProperty(Ingredients, repeated=True) instructions =

App engine endpoints API - 404 with custom domain

送分小仙女□ 提交于 2020-01-14 12:17:07
问题 I'm trying to use custom domain with app engine. Everything works fine with localhost and appspot url. But with custom domain endpoints api doesn't work; the API discovery request (https://cc.mdsarowar.me/_ah/api/discovery/v1/apis/conference/v1/rest) returns Not Found with error code 404 . Here is my app.yaml (full code): - url: /_ah/spi/.* script: conference.api secure: optional And endpoints api (full code): @endpoints.api( name='conference', version='v1', allowed_client_ids=[WEB_CLIENT_ID,

App engine endpoints API - 404 with custom domain

江枫思渺然 提交于 2020-01-14 12:15:32
问题 I'm trying to use custom domain with app engine. Everything works fine with localhost and appspot url. But with custom domain endpoints api doesn't work; the API discovery request (https://cc.mdsarowar.me/_ah/api/discovery/v1/apis/conference/v1/rest) returns Not Found with error code 404 . Here is my app.yaml (full code): - url: /_ah/spi/.* script: conference.api secure: optional And endpoints api (full code): @endpoints.api( name='conference', version='v1', allowed_client_ids=[WEB_CLIENT_ID,