Webhook to Google Cloud Functions or Pub/Sub

Anyone have success creating a webhook to Google Cloud Pub/Sub or Google Cloud Functions with Authentication (probably in the header)?

@Stefan_Quartemont Might have some knowledge.