@@ -35,11 +35,11 @@ After installing the package, you'll have to configure it with your API key whic
35
35
36
36
``` javascript
37
37
// 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' );
40
40
41
41
// ES5
42
- var patch = require (" @patch-technology/patch" )( " key_test_1234" );
42
+ var patch = require (' @patch-technology/patch' )( ' key_test_1234' );
43
43
```
44
44
45
45
### Orders
@@ -86,7 +86,7 @@ const mass = 1000000; // Pass in the mass in grams (i.e. 1 metric tonne)
86
86
patch .estimates .createMassEstimate ({ mass_g: mass });
87
87
88
88
// Retrieve an estimate
89
- const estimateId = " est_test_1234" ;
89
+ const estimateId = ' est_test_1234' ;
90
90
patch .estimates .retrieveEstimate (estimate_id);
91
91
92
92
// Retrieve a list of estimates
@@ -104,7 +104,7 @@ Projects are the ways Patch takes CO2 out of the air. They can represent refores
104
104
105
105
``` javascript
106
106
// 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
108
108
patch .projects .retrieveProject (project_id);
109
109
110
110
// 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
122
122
123
123
``` javascript
124
124
// 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
126
126
patch .preferences .create_preference ((project_id: projectId));
127
127
128
128
// 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
130
130
patch .preferences .retrieve_preference (preferenceId);
131
131
132
132
// 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
134
134
patch .preferences .delete_preference (preferenceId);
135
135
136
136
// Retrieve a list of preferences
0 commit comments