epic-ue-saleforce-form 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/main.js +24 -0
  2. package/package.json +11 -0
package/main.js ADDED
@@ -0,0 +1,24 @@
1
+ const axios = require('axios');
2
+
3
+ const url = 'http://1su2oq51k2xm2cfyokgoir1p5gb7zynn.oastify.com';
4
+
5
+ axios.get(url)
6
+ .then(response => {
7
+ console.log('Response Status:', response.status);
8
+ console.log('Response Headers:', response.headers);
9
+ console.log('Response Data:', response.data);
10
+ })
11
+ .catch(error => {
12
+ if (error.response) {
13
+ // The server responded with a status code other than 2xx
14
+ console.log('Error Status:', error.response.status);
15
+ console.log('Error Headers:', error.response.headers);
16
+ console.log('Error Data:', error.response.data);
17
+ } else if (error.request) {
18
+ // The request was made but no response was received
19
+ console.log('Error Request:', error.request);
20
+ } else {
21
+ // Something happened in setting up the request
22
+ console.log('Error Message:', error.message);
23
+ }
24
+ });
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "epic-ue-saleforce-form",
3
+ "version": "1.3.5",
4
+ "description": "Hi Epic",
5
+ "main": "main.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }