Between 9pm - 11pm ET this Sat (9/18), we will be doing routine network maintenance. Please avoid usage of our API during this time frame - including any scheduled sync jobs. Thank you in advance for your patience.

unit_testing a python API


unit_testing a python API

I've written an API using python and would like to add unit tests to the code which I've written.


The only way to fully test the functionality would be to CRUD the data to your server.  I'm loathe to use a client's live dataset, so is there a testbed account to which data can be sent/received when tests are running?   My proposal would involving sending tens (rather than hundreds) of requests per test and naturally it'd be ok for there to be a data throttle in place, say a total of 500 calls per day.   Any emails sent would be to dummy email addresses only.


Could such a test-bed account be made available? 


Hi Gabrielle,


Unfortunately we do not have any testbed or sandbox accounts available for developers to test against. However, you can at any time sign up for a trial account, populate it with data, get an access token for that account, and then perform your testing. 


Please let me know if this is helpful, or if you have any questions. See API Keys topic for more information on how to get an Oauth access token using your API key. 

Rich Marcucella
Sr. Technical Writer, Content Developer
Web Services Team
Developer Portal

View API documentation, code samples, get your API key.

Visit Page