-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGet_Docs.py
More file actions
37 lines (29 loc) · 1.04 KB
/
Copy pathGet_Docs.py
File metadata and controls
37 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
####################################################################
### Tenant Credentials
from credentials import username,password
wsdl_url = '?wsdl'
print "Warning : ", wsdl_url[wsdl_url.index("/service/")+9: wsdl_url.index("/Staffing")]
proxy = ''
shared_folder_name = ""
batch_size = ""
get_raw = True
index_no = 0
####################################################################
# includes suds import & following functions
# def workday_client_login :
from load_functions import *
from data_variables import worker_file_IDs
client_custom = workday_client_login(wsdl_url = wsdl_url,username = username,password = password,proxy = proxy)
if(client_custom != None):
print("Starting Download!")
try:
if(get_raw == True):
get_raw_file_data_iterator(client_custom,worker_file_IDs,index_no,shared_folder_name)
else:
get_base_64_data_iterator(client_custom,worker_file_IDs,index_no,batch_size)
except Exception as e:
print(e)
print("Task Complete")
else:
print("Connection Error")