Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- methods: {
- getToken: function() {
- this.$http.post('http://gps-track.intellitrac.co.id/index.php/api_users/login',
- {
- username: this.username,
- password: this.password
- })
- .then(function(response) {
- console.log(response.data.token);
- })
- .then(function(error){
- console.log('Cannot get access token')
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement