File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
third_party/apache-airflow/plugins/gcs_plugin/hooks Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 17
17
import json
18
18
import os
19
19
20
- import apiclient
20
+ import googleapiclient
21
21
from flask import jsonify
22
22
23
23
with open ('config.json' , 'r' ) as f :
24
24
data = f .read ()
25
25
config = json .loads (data )
26
26
27
27
28
- kgsearch = apiclient .discovery .build (
28
+ kgsearch = googleapiclient .discovery .build (
29
29
'kgsearch' ,
30
30
'v1' ,
31
31
developerKey = os .environ .get ('API_KEY' ) or config .get ('KG_API_KEY' ),
Original file line number Diff line number Diff line change 13
13
14
14
import json
15
15
16
- import apiclient
16
+ import googleapiclient
17
17
import mock
18
18
import os
19
19
import pytest
25
25
config = json .loads (data )
26
26
27
27
28
- kg_search = apiclient .discovery .build ('kgsearch' , 'v1' ,
28
+ kg_search = googleapiclient .discovery .build ('kgsearch' , 'v1' ,
29
29
developerKey = os .environ ['API_KEY' ])
30
30
example_response = kg_search .entities ().search (query = 'lion' , limit = 1 ).execute ()
31
31
Original file line number Diff line number Diff line change 17
17
# specific language governing permissions and limitations
18
18
# under the License.
19
19
#
20
- from apiclient .discovery import build
21
- from apiclient .http import MediaFileUpload
20
+ from googleapiclient .discovery import build
21
+ from googleapiclient .http import MediaFileUpload
22
22
from googleapiclient import errors
23
23
24
24
from airflow .contrib .hooks .gcp_api_base_hook import GoogleCloudBaseHook
You can’t perform that action at this time.
0 commit comments