Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. from simple_salesforce import Salesforce
  2.  
  3. sf = Salesforce(username = 'myusername@salesforce.com.sandbox', password =
  4. 'mypassword', security_token = 'mysecuritytoken', sandbox =
  5. True, client_id = 'Report Query')
  6.  
  7. # just trying to get a json response of all reports - once I have the data
  8. set returned I can complete my script
  9. # and parse through the result details
  10.  
  11. query_results = sf.query("/services/data/v39.0/analytics/reports")
  12.  
  13. print(query_results)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement