Skip to content

Instantly share code, notes, and snippets.

@qgadrian
Created February 16, 2018 14:31
Show Gist options
  • Save qgadrian/e818e85d9a362bef408a915445dc9d88 to your computer and use it in GitHub Desktop.
Save qgadrian/e818e85d9a362bef408a915445dc9d88 to your computer and use it in GitHub Desktop.
alias GoogleApi.PubSub.V1.Model
data = Base.encode64(“pub sub test message”)
message = %Model.PubsubMessage{data: data}
publish_request = %Model.PublishRequest{messages: [message]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment