How do I use a remote web service
GET
// obtain a reference to the API Client from the Application Client
const { restApi } = this.props.dpapp;
// issue a GET request
restApi.fetchProxy(
`https://us16.api.mailchimp.com/3.0/search-members?query=joe@example.com`,
{
method: 'GET',
headers: {
'Accept': 'application/json' ,
'X-Proxy-SignWith': 'basic_auth anystring:{{apiKey}}'
}
}).then(({body, headers}) => {
console.log('response: ', body, headers)
});DELETE
POST
PUT
Last updated