Extending DataGrab

You can extend parts of DataGrab's functionality by subscribing to the following hooks:

datagrab_custom_headers

This hook should return the same array format as the datagrab_custom_headers config override. E.g.

6 => [
    'Content-Type: application/json',
    'Authorization: Bearer YOUR_ACCESS_TOKEN'
]

Last updated

Was this helpful?