Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.

Commit 4e5e188

Browse files
committed
add fetch request example
1 parent 28cafe8 commit 4e5e188

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,21 @@ Find the `<c:lc_api>` by its `aura:id` then call one of the request methods:
5858
// handle error
5959
}));
6060

61+
},
62+
63+
getDataFromGist: function( component, event, helper ) {
64+
65+
component.find( 'lc_api' ).fetchRequest({
66+
'url' : 'https://gist.githubusercontent.com/douglascayers/e96c53304dc78dc83e59a85753f29111/raw/sfdx-mass-action-scheduler-version.js',
67+
'options': {}
68+
}).then( $A.getCallback( function( response ) {
69+
// handle response
70+
})).catch( $A.getCallback( function( err ) {
71+
// handle error
72+
}));
73+
6174
}
75+
6276
})
6377
```
6478

0 commit comments

Comments
 (0)