Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion copy-sdks
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,18 @@ function copy_files()
git reset --hard origin/${REPO_MAIN_BRANCH}
git pull origin ${REPO_MAIN_BRANCH}
git checkout -b "release-${VERSION}"
git rm -rf --cached .

cp -r "${DIR}/sdks/${SDK}/." "${SDK_DIR}"
popd

cp -r "${DIR}/sdks/${SDK}" "${SDK_DIR}-tmp"
cp -r "${SDK_DIR}/.git" "${SDK_DIR}-tmp/"
rm -rf "${SDK_DIR}"
mv "${SDK_DIR}-tmp" "${SDK_DIR}"

pushd "${SDK_DIR}/"

git add .

rm -f "${SDK_DIR}/openapi-sdk.yaml"
rm -rf "${SDK_DIR}/examples"
Expand Down
4 changes: 1 addition & 3 deletions examples/AccountCreate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/AccountGet.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/AccountUpdate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/AccountVerify.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
6 changes: 2 additions & 4 deletions examples/ApiAppCreate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand All @@ -24,7 +22,7 @@
primary_button_text_color="#ffffff",
)

custom_logo_file = open('./CustomLogoFile.png', 'rb')
custom_logo_file = open("./CustomLogoFile.png", "rb")

data = models.ApiAppCreateRequest(
name="My Production App",
Expand Down
4 changes: 1 addition & 3 deletions examples/ApiAppDelete.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/ApiAppGet.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/ApiAppList.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
6 changes: 2 additions & 4 deletions examples/ApiAppUpdate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand All @@ -19,7 +17,7 @@
primary_button_text_color="#ffffff",
)

custom_logo_file = open('./CustomLogoFile.png', 'rb')
custom_logo_file = open("./CustomLogoFile.png", "rb")

data = models.ApiAppUpdateRequest(
name="New Name",
Expand Down
4 changes: 1 addition & 3 deletions examples/BulkSendJobGet.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/BulkSendJobList.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/BulkSendJobList.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
page_size = 20

begin
result = bulk_send_job_api.bulk_send_job_list({page: page, page_size: page_size})
result = bulk_send_job_api.bulk_send_job_list({ page: page, page_size: page_size })
p result
rescue Dropbox::Sign::ApiError => e
puts "Exception when calling Dropbox Sign API: #{e}"
Expand Down
4 changes: 1 addition & 3 deletions examples/EmbeddedEditUrl.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/EmbeddedSignUrl.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineAddUser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineAreaCodeGet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineCreate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
2 changes: 1 addition & 1 deletion examples/FaxLineDelete.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void Main()
var faxLineApi = new FaxLineApi(config);

var data = new FaxLineDeleteRequest(
number: "[FAX_NUMBER]",
number: "[FAX_NUMBER]"
);

try
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineDelete.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineGet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineList.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
3 changes: 1 addition & 2 deletions examples/FaxLineRemoveUser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
Expand Down
5 changes: 2 additions & 3 deletions examples/OauthTokenGenerate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration()

with ApiClient(configuration) as api_client:
api = apis.OAuthApi(api_client)
oauth_api = apis.OAuthApi(api_client)

data = models.OAuthTokenGenerateRequest(
state="900e06e2",
Expand Down
5 changes: 2 additions & 3 deletions examples/OauthTokenRefresh.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration()

with ApiClient(configuration) as api_client:
api = apis.OAuthApi(api_client)
oauth_api = apis.OAuthApi(api_client)

data = models.OAuthTokenRefreshRequest(
refresh_token="hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3",
Expand Down
4 changes: 1 addition & 3 deletions examples/ReportCreate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
10 changes: 6 additions & 4 deletions examples/SignatureRequestBulkCreateEmbeddedWithTemplate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down Expand Up @@ -64,7 +62,11 @@
)

try:
response = signature_request_api.signature_request_bulk_create_embedded_with_template(data)
response = (
signature_request_api.signature_request_bulk_create_embedded_with_template(
data
)
)
pprint(response)
except ApiException as e:
print("Exception when calling Dropbox Sign API: %s\n" % e)
4 changes: 1 addition & 3 deletions examples/SignatureRequestBulkSendWithTemplate.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from pprint import pprint

from dropbox_sign import \
ApiClient, ApiException, Configuration, apis, models
from dropbox_sign import ApiClient, ApiException, Configuration, apis, models

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
4 changes: 1 addition & 3 deletions examples/SignatureRequestCancel.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
from dropbox_sign import \
ApiClient, ApiException, Configuration, apis
from dropbox_sign import ApiClient, ApiException, Configuration, apis

configuration = Configuration(
# Configure HTTP basic authorization: api_key
username="YOUR_API_KEY",

# or, configure Bearer (JWT) authorization: oauth2
# access_token="YOUR_ACCESS_TOKEN",
)
Expand Down
Loading