Last active
July 1, 2016 00:12
-
-
Save viniciusdacal/757d444dce598321fbd4db65726e7ba9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from './HttpClient'; //simple http request manager | |
export function getContacts({ userId }) { | |
const payload = { userId }; | |
return { | |
types: [ | |
GET_CONTACTS_REQUEST, | |
GET_CONTACTS_SUCCESS, | |
GET_CONTACTS_FAILURE, | |
], | |
callAPI: () => http.get('user/contacts', payload), | |
payload, | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment