@@ -35,11 +35,11 @@ After installing the package, you'll have to configure it with your API key whic
3535
3636``` javascript
3737// ES6+
38- import Patch from " @patch-technology/patch" ;
39- const patch = Patch (" key_test_1234" );
38+ import Patch from ' @patch-technology/patch' ;
39+ const patch = Patch (' key_test_1234' );
4040
4141// ES5
42- var patch = require (" @patch-technology/patch" )( " key_test_1234" );
42+ var patch = require (' @patch-technology/patch' )( ' key_test_1234' );
4343```
4444
4545### Orders
@@ -86,7 +86,7 @@ const mass = 1000000; // Pass in the mass in grams (i.e. 1 metric tonne)
8686patch .estimates .createMassEstimate ({ mass_g: mass });
8787
8888// Retrieve an estimate
89- const estimateId = " est_test_1234" ;
89+ const estimateId = ' est_test_1234' ;
9090patch .estimates .retrieveEstimate (estimate_id);
9191
9292// Retrieve a list of estimates
@@ -104,7 +104,7 @@ Projects are the ways Patch takes CO2 out of the air. They can represent refores
104104
105105``` javascript
106106// Retrieve a project
107- const project_id = " pro_test_1234" ; // Pass in the project's ID
107+ const project_id = ' pro_test_1234' ; // Pass in the project's ID
108108patch .projects .retrieveProject (project_id);
109109
110110// Retrieve a list of projects
@@ -122,15 +122,15 @@ Preferences are how you route your orders in Patch. If you don't have a preferen
122122
123123``` javascript
124124// Create a preference
125- const projectId = " pro_test_1234" ; // Pass in the project_id for your preference
125+ const projectId = ' pro_test_1234' ; // Pass in the project_id for your preference
126126patch .preferences .create_preference ((project_id: projectId));
127127
128128// Retrieve a preference
129- const preferenceId = " pre_test_1234" ; // Pass in the preferences's id
129+ const preferenceId = ' pre_test_1234' ; // Pass in the preferences's id
130130patch .preferences .retrieve_preference (preferenceId);
131131
132132// Delete a preference
133- const preferenceId = " pre_test_1234" ; // Pass in the preferences's id
133+ const preferenceId = ' pre_test_1234' ; // Pass in the preferences's id
134134patch .preferences .delete_preference (preferenceId);
135135
136136// Retrieve a list of preferences
0 commit comments