Não use UUID como PK nas tabelas do seu banco de dados.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The console.log() is a function that writes a message to log on the debugging console | |
| // Names can contain letters, digits, underscores, and dollar signs. | |
| // No limit o the length of the variable name | |
| // Names can begin with letter, $ and _ | |
| // Reserved words(like switch, if else) cannot be used as names | |
| // console.log(null+'10'); | |
| // var name = "Nikhil" | |
| // var age = 23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from simple_salesforce import Salesforce | |
| import requests | |
| import logging | |
| import argparse | |
| import os | |
| import sys | |
| import codecs | |
| RESULT_CSV = './attachments.csv' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import re | |
| def code_generator(Train_data,target_variable): | |
| load_data = pd.read_csv(Train_data) | |
| target_var = load_data.columns.get_loc(target_variable) | |
| c = load_data.columns | |
| if int(target_variable)!=1: | |
| load_data[[c[1], c[target_var]]] = load_data[[c[target_var], c[1]]] | |
| load_data.to_csv('train_data',header=False,index=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from simple_salesforce import Salesforce | |
| sf = Salesforce(username=..., | |
| password=..., | |
| security_token=...) | |
| # SOQL | |
| sf.query(<soql>) | |
| # REST | |
| # omit https://.../services/data/apiversion prefix from url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import paramiko | |
| import requests | |
| import base64 | |
| import json | |
| from simple_salesforce import Salesforce | |
| #--------------------------------- | |
| # FTP portion | |
| #--------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from utils import SalesforceUtility | |
| username = '[email protected]' | |
| password = 'myPassword' | |
| token = 'mySecurityToken' | |
| if __name__ == "__main__": | |
| sfdc = SalesforceUtility(username, password, token) | |
| client = sfdc.connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from simple_salesforce import Salesforce | |
| import pytz | |
| import datetime | |
| CLIENT_ID = '3MVG959Nd8JMmavRjCqjEGuLnGzR.CNuRMjOLwZKB_5gIxL0CvEXzU6Rqpf6pjdHu3cJXVvyYVrCwrxyLRy_i' | |
| SANDBOX = True | |
| USERNAME = '[email protected]' | |
| PASSWORD = 'google12' | |
| sf = Salesforce( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import pprint | |
| import json | |
| from requests_oauthlib import OAuth2Session, TokenUpdated | |
| TOKEN_FILE = os.environ.get('TOKEN_FILE', 'token.json') | |
| SALESFORCE_URI = os.environ.get('SALESFORCE_URI', 'https://login.salesforce.com') |
This document will walk you through how to create or configure a Salesforce application for use with JWT authentication. These configuration steps and the example code works as of Salesforce API version 42.0.
Create an RSA x509 private key/certification pair
NewerOlder