Skip to content

Instantly share code, notes, and snippets.

View skaboy71's full-sized avatar

Aaron Smusz skaboy71

  • Adobe
  • CA
View GitHub Profile

Browser Security and iFrames - Adobe Sign

These days, end users are bombarded contsantly with things they are asked to click on related to website security and tracking. Most of these are in the form of "allow cookies" buttons on websites.

What are these cookies that everyone is so concerned with? Well they started as a way to track the current user so that profile preferences, or other individualization could be saved to the browser for current or possibly future session use/reference on a website. Nice and convenient right? The concern is that like most things that make life "convenient" on the internet, these cookies can also be used to collect info about the web browsing behavior and possibly other details about you and your internet habits, sometimes across a number of sites and locations across the web.

What's a "3rd party" cookie?

From: 'Browser Cookies: What Are They & Why Should You Care?' ~ https://www.whoishost

@skaboy71
skaboy71 / get-users.py
Last active October 5, 2019 21:41
Adobe Sign | Python 3.7 | Get User List from Account
'''
This function uses Adobe Sign rest V6 api to get list of users in your account
usage:
your_list_of_users = get_user_list(your_shard, your_api_token)
'''
import requests, json
#################################
def get_userlist(ac_shard, api_token):
# api endpoint
@skaboy71
skaboy71 / upload_transient.py
Last active January 24, 2020 15:33
Python 3.5 Function to upload a pdf as "transient doc" to Adobe Sign via REST V5
import requests # get requests via pip with documentation here: http://docs.python-requests.org/en/master/
def upl_trans(file_path, docName, apiToken):
"""Uploads document to EchoSign and returns its ID
:param access_token: EchoSign Access Token
:param file_path: Absolute or relative path to File
:return string: transientDucumentId
:usage example: transID1 = upl_trans('./_MSA_noline.pdf','Test1.pdf', '*** your_api_token_or_integration_key_here ***')
"""
headers = {
## This script will print all pdf files in a specific folder in alphabetical order by file name.
## As an admin on the machine where you are running the script, from powershell you will need to run the command:
## Set-ExecutionPolicy Unrestricted
## Before you can run any powershell script on that machine.
## This will get all pdfs in the path designated as $folderPath, sort them by name alphabetically and then send each one to the default printer.
## Please change the path inside the double quotes on the first line to match the path you need to use.
Set-ExecutionPolicy Unrestricted
$folderPath = "C:\Yourpath\to\folder\here"