declare(strict_types=1);
require 'vendor/autoload.php';
use novu;
$sdk = novu\Novu::builder()
->setSecurity(
'YOUR_SECRET_KEY_HERE'
)
->build();
$response = $sdk->activity->track(
environmentId: '<id>',
integrationId: '<id>',
requestBody: [
]
);
if ($response->webhookResultDtos !== null) {
// handle response
}
from novu_py import Novu
with Novu(
secret_key="YOUR_SECRET_KEY_HERE",
) as novu:
res = novu.activity.track(environment_id="<id>", integration_id="<id>", request_body={
})
# Handle response
print(res)
package main
import(
"context"
"github.com/novuhq/novu-go/v3"
"log"
)
func main() {
ctx := context.Background()
s := v3.New(
v3.WithSecurity("YOUR_SECRET_KEY_HERE"),
)
res, err := s.Activity.Track(ctx, "<id>", "<id>", map[string]any{
}, nil)
if err != nil {
log.Fatal(err)
}
if res.WebhookResultDtos != nil {
// handle response
}
}
import { Novu } from "@novu/api";
const novu = new Novu({
secretKey: "YOUR_SECRET_KEY_HERE",
});
async function run() {
const result = await novu.activity.track({
environmentId: "<id>",
integrationId: "<id>",
requestBody: {
},
});
console.log(result);
}
run();
using Novu;
using Novu.Models.Components;
using System.Collections.Generic;
var sdk = new NovuSDK(secretKey: "YOUR_SECRET_KEY_HERE");
var res = await sdk.Activity.TrackAsync(
environmentId: "<id>",
integrationId: "<id>",
requestBody: new Dictionary<string, object>() {
}
);
// handle response