Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: environment nodejs sdk method #536

Merged
merged 5 commits into from Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-reference/environments/get-current-environment.mdx
Expand Up @@ -10,7 +10,7 @@ import { Novu } from '@novu/node';

const novu = new Novu('<NOVU_API_KEY>');

await novu.environmets.getCurrent();
await novu.environments.getCurrent();
```

```php PHP
Expand Down
7 changes: 7 additions & 0 deletions api-reference/environments/get-environments.mdx
Expand Up @@ -5,6 +5,13 @@ openapi: get /v1/environments
<Snippet file="apikey-warning.mdx" />

<RequestExample>
```javascript Node.js
import { Novu } from '@novu/node';

const novu = new Novu('<NOVU_API_KEY>');

await novu.environments.getAll();
```

```php PHP
use Novu\SDK\Novu;
Expand Down
6 changes: 3 additions & 3 deletions help/account-management.mdx
Expand Up @@ -25,9 +25,9 @@ If you created your Novu account using Github, and you change your email in Gith

### How do I create a new Organization?

A new organization can be created by entering a value in the dropdown in the left bottom corner of the dashboard. As soon as you start writing something, an add option will appear. This dropdown can also be used to switch between organizations. One organization's data is not visible to other organization members.
A new organization can be created by writing something in the dropdown in the left bottom corner of the dashboard. As soon you start writing something, an add option will apear. This dropdown can also be used to switch between [organizations](/getting-started/concepts#organization). One organization's data is not visible to other organization members.

### How can I change the name of my Organization
If you want to change your current Organization name, [rename organization api](https://novu-preview.mintlify.app/api-reference/organizations/rename-organization) can be used. If you face any issue in using the API or need any help changing the Organization name, please reach out to us at support@novu.co.
### How to change organization name?
We are working on account management feature currently so this option is not available in UI as of now. If you want to change your current organization name, [rename organization api](/api-reference/organizations/rename-organization) can be used. if you face any issue in using api or need any help any changing the organization name, please reach out to us at support@novu.co.

<Snippet file="contact-support.mdx" />
4 changes: 3 additions & 1 deletion quickstarts/go.mdx
Expand Up @@ -60,7 +60,9 @@ novuClient := novu.NewAPIClient(apiKey, &novu.Config{RetryConfig: &novu.RetryCon
| WaitMax | Specifies the maximum time to wait before retrying | 0 |
| InitialDelay | Specifies the initial delay before the first retry attempt | 0 |


<Info>
Above retry configuration is applied to all the sdk methods.
</Info>
## Set Up A Channel Provider

A channel provider is a service that lets you use one or more notification channels such as sending an email, SMS, push notification etc. Our [integration store](https://web.novu.co/integrations) currently supports four channels: Email, SMS, Chat, and Push. Each of these channels have multiple providers associated with them.
Expand Down