Skip to content

Instantly share code, notes, and snippets.

@cassolmc
cassolmc / freshdesk-sso.py
Created March 14, 2019 13:05 — forked from pbertera/freshdesk-sso.py
Freshdesk Single sign-on in Python
import time
import hashlib
import hmac
import urllib
def get_sso_url(email, name, base_url, key, redirect_url=None, phone=None, company=None):
"""This function returns the Freshdesk SSO URL.
For more info look at https://goo.gl/NISgpr
"""
utctime = int(time.time())
@cassolmc
cassolmc / pyside_alert_with_checkbox.py
Last active April 25, 2016 13:39
QMessagebox with Checkbox
import sys
from PySide.QtCore import *
from PySide.QtGui import *
class DialogWithCheckBox(QMessageBox):
def __init__(self, parent= None):
super(DialogWithCheckBox, self).__init__(parent)
self.checkbox = QCheckBox()