Question: I am able to send events to Event Hub as a batch using the Nuget package [Azure.Messaging.EventHubs](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-standard-getstarted-send).But I want to use REST API.
I am able to [send single events](https://learn.microsoft.com/en-us/rest/api/eventhub/send-event) to Event Hub using REST API using Postman. But as per [documentation](https://learn.microsoft.com/en-us/rest/api/eventhub/send-batch-events) if I need to send batch events in REST API I need add header `Content-Type:application/vnd.microsoft.servicebus.json` and Also the message should be enclosed with the "Body"
like `[{"Body":"Message1"},{"Body":"Message2"},{"Body":"Message3"}]`

So if I need to send json as event then should I create a json string and send it?

Sample:

```
   [
   {
      "Body":"{\"ID\":\"1\",\"Name\":\"abc1\"}"
   },
   {
      "Body":"{\"ID\":\"2\",\"Name\":\"def1\"}"
   },
   {
      "Body":"{\"ID\":\"3\",\"Name\":\"xyz1\"}"
   }
   ]

```

OR is there any other option to send event as Batch using the REST API to Event Hub.

Answer: 
You can install the dependency directly from Github repo (instead of the npm repo), where it seems to be a greater version (3.1.0 at Github > 3.0.2 at NPM):

```
"@codetrix-studio/capacitor-google-auth": "git://github.com:CodetrixStudio/CapacitorGoogleAuth.git"

```

Here it's author response: <https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues/119#issuecomment-974704558>

**EDIT:**

If you get an error about missing `capacitor.config.json` and you already have a `capacitor.config.ts` in your root directory, clarify that the missing or error one is the file inside the app:

[![enter image description here](https://i.stack.imgur.com/ByNkE.png)](https://i.stack.imgur.com/ByNkE.png)
I had to add capacitor.congfig.json as well as capacitor.congfig.ts to make it work. It is temporary I guess only for this plugin atm.