Skip to content

Commit 7fec462

Browse files
committed
Enable support for Google Cloud Endpoints
1 parent 206d2fa commit 7fec462

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

google-client-api.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
@homepage http://polymerlabs.github.io/google-apis
5656
-->
5757
<polymer-element name="google-api-loader"
58-
attributes="name version"
58+
attributes="name version root"
5959
extends="google-client-api"
6060
on-api-load="{{doneLoadingClient}}">
6161
<script>
@@ -102,6 +102,14 @@
102102
*/
103103
version: '',
104104

105+
/**
106+
* Root URL for loading a Google Cloud Endpoints API.
107+
* A valid root URL looks like this:
108+
* 'https://your_app_id.appspot.com/_ah/api'
109+
* @attribute root
110+
* @type string
111+
*/
112+
105113
// Used to fix events potentially being fired multiple times by
106114
// core-shared-lib.
107115
waiting: false,
@@ -190,7 +198,7 @@
190198
statuses_[this.name] = 'loading';
191199
loaders_[this.name] = this;
192200
gapi.client.load(this.name, this.version,
193-
this.handleLoadResponse.bind(this));
201+
this.handleLoadResponse.bind(this), this.root);
194202
}
195203
}
196204
}

0 commit comments

Comments
 (0)