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

Commit

Permalink
add fetch request example
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascayers committed Apr 28, 2019
1 parent 28cafe8 commit 4e5e188
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,21 @@ Find the `<c:lc_api>` by its `aura:id` then call one of the request methods:
// handle error
}));

},

getDataFromGist: function( component, event, helper ) {

component.find( 'lc_api' ).fetchRequest({
'url' : 'https://gist.githubusercontent.com/douglascayers/e96c53304dc78dc83e59a85753f29111/raw/sfdx-mass-action-scheduler-version.js',
'options': {}
}).then( $A.getCallback( function( response ) {
// handle response
})).catch( $A.getCallback( function( err ) {
// handle error
}));

}

})
```

Expand Down

0 comments on commit 4e5e188

Please sign in to comment.