google-cloud-endpoints

How to verify ownership of Google Cloud Endpoints service URL?

孤者浪人 提交于 2019-12-05 07:26:18
I already set up Google Cloud Endpoints project and can invoke http/https requests. Endpoints gives me MY_API.endpoints.MY_PROJECT.cloud.goog domain name that I can use. I'm using gRPC Cloud Endpoints with HTTP/JSON to gRPC transcoding feature. It is deployed on Google Kubernetes Engine (deployment yaml script attached at the end). When I'm trying to create push subscription with that URL I getting next error: "The supplied HTTP URL is not registered in the subscription's parent project (url="https://MY_API.endpoints.MY_PROJECT.cloud.goog/v1/path", project_id="PROJECT_ID"). My gcloud call:

App Engine Endpoints DOWN

冷暖自知 提交于 2019-12-05 07:10:16
问题 I use Google Cloud Endpoints for my application. Whenever I hit the application root, it gives an error. The console says: Importing endpoints from google.appengine.ext is deprecated and will be removed. Add the endpoints library to app.yaml, then endpoints can be imported simply with "import endpoints". There is no mention of this in the documentation and I believe I am doing this correctly. I tried adding endpoints to the library section of app.yaml , but the deployment failed saying that

Send image from Android client to AppEngine Cloud Endpoint

我的未来我决定 提交于 2019-12-05 06:42:01
问题 I am developing an Android applicaiton with AppEngine backend. I am creating the server part with Google Cloud Endpoints in Java. My problem is that I cannot send a Bitmap from the client to the server. I used the answer from this question but even if the client part does not seem to have any problems at all, the server part does not receive the data at all. I also think this solution might be a bit complicated and that it might work a different, easier way, however this is my first time

AngularJS Load controllers only when parent controller finishes async call

天涯浪子 提交于 2019-12-05 06:32:59
I am building a website with AngularJS and Google Cloudendpoint The architecture is as follow. I have : 1 - a MainCtrl that manages the overall site display (top menus, modals, etc...) <body ng-controller="MainCtrl" ng-cloak main-directive> ... <div ng-view></div> ... </body> 2 - ng-view with a controller for each page that all have a their own controllers managed by the $routeprovider main.js .config([ '$routeProvider', '$locationProvider', '$httpProvider', function($routeProvider, $locationProvider, $httpProvider) { ... $routeProvider.when('/example', { templateUrl : 'partials/example.html',

How to send Firebase Cloud Message from Google App Engine App

风流意气都作罢 提交于 2019-12-05 06:06:57
How can you send a Firebase Cloud Message from a Google App Engine/Cloud Endpoints App? Android Studio automatically generates the following code to send a Google Cloud Message. While you can use the same code to send a FCM, you can't set the "notification" or "priority" or anything like that which the new FCM uses. Is there a gradle import for this or an example of how to use Firebase Cloud Messaging inside of an App Engine app so you can easily do things like set the message, notification, priority, etc? This is what Android Studio Cloud Endpoints auto generates for you currently: // Gradle

Push Notifications in Android using Google App Engine

别等时光非礼了梦想. 提交于 2019-12-05 05:22:09
I am currently developing an app where users create posts that are stored on a server. When another user shows interest in a post by clicking a button, I want to notify the author of the post using push notifications. I have already set up the data storage using cloud endpoints with Google App Engine. Is there anyway I can use these endpoints to implement push notifications? If not is there another easy way to implement push notifications given my current setup? I have already read about Google Cloud Messaging on the developers page but was somewhat confused. I have kept track of the

Google Cloud Endpoints and JWT

一曲冷凌霜 提交于 2019-12-05 04:51:40
问题 I have an API based on Google Cloud Endpoints and I want to use JWT (Json Web Tokens) for authorization. I can set Authorization header for every request which contains token and it works correctly. I know that Endpoints uses this header for Oauth2 and here is my question. Is it correct to use Authorization header for custom token? GAE logs: D 12:38:44.375 Checking for id_token. D 12:38:44.376 id_token verification failed: Unexpected encryption algorithm: u'HS256' D 12:38:44.376 Checking for

Google endpoints and Google Cloud Messaging

浪尽此生 提交于 2019-12-05 04:13:34
问题 I am building a mobile app with a backend using google app engine, I'm using google endpoints for API calls. Now what I am wondering is if there is a possibility to use GCM on the same backend. At the beginning When I wanted to create a new module using android studio, I only found the possibility to create a backend with endpoints and another one with GCM, but nothing with both of them. Any clue? Thanks. 回答1: Google Cloud Messaging (GCM) is a service that allows you to send push

User Authorization for Cloud Endpoints

社会主义新天地 提交于 2019-12-05 03:00:30
问题 I'm working on a cloud endpoints backend and want to restrict certain operations to admin users. My current code works like this: @ApiMethod(httpMethod = "PATCH", name = "item.update", path = "items") public Item update(Item newObject, User user) throws UnauthorizedException, OAuthRequestException { OAuthService oAuthService = OAuthServiceFactory.getOAuthService(); if (!oAuthService.isUserAdmin()) { throw new UnauthorizedException("Only admin users can modify content."); } ... } I know app

Gradle failed: unsupported Gradle DSL method found: 'exclude()'

痴心易碎 提交于 2019-12-05 02:33:38
问题 I'm trying to include into my Android project (Android Studio - latest, Gradle) the classes from the Google Endpoints (Python) that I recently coded. The server side is all tested and working. I'm not used to Gradle, therefore I'm following the documentation at Google Developers. After changing the build.gradle file under src (as instructed by the doc) to: build.gradle: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.9.+' } } apply