# `Twilio.IpMessaging.V2.CredentialService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/ipmessaging/v2/credential_service.ex#L2)

Service for Credential API operations.

Operations: `list`, `create`, `fetch`, `update`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.IpMessaging.V2.Credential.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Operation: `CreateCredential` | Tags: IpMessagingV2Credential

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `Type` | string |  Values: `gcm`, `apn`, `fcm` |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `ApiKey` | string |  |
| `Certificate` | string |  |
| `FriendlyName` | string |  |
| `PrivateKey` | string |  |
| `Sandbox` | boolean |  |
| `Secret` | string |  |

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Operation: `DeleteCredential` | Tags: IpMessagingV2Credential

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.IpMessaging.V2.Credential.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Operation: `FetchCredential` | Tags: IpMessagingV2Credential

# `list`

```elixir
@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Operation: `ListCredential` | Tags: IpMessagingV2Credential

# `stream`

```elixir
@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()
```

Stream:  (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.IpMessaging.V2.Credential.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Operation: `UpdateCredential` | Tags: IpMessagingV2Credential

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `ApiKey` | string |  |
| `Certificate` | string |  |
| `FriendlyName` | string |  |
| `PrivateKey` | string |  |
| `Sandbox` | boolean |  |
| `Secret` | string |  |

---

*Consult [api-reference.md](api-reference.md) for complete listing*
