Documentation

Quick examples on how to integrate with rdump.dev using different programming languages and frameworks.

Code copied successfully!
Installation
composer require rdumpdev/laravel-rdump
Configuration

Add this to your .env file:

RDUMP_PRIVATE_KEY="you_project_key_here"
RDUMP_ERROR_REPORTING_ENABLED=true
Usage

Use the following code snippet in your application:

$data = ['name' => 'John'];
rdump('user_registered',$data)
Curl Command

Use the following curl command to interact with the rdump.dev API:

curl -X POST https://rdump.dev/api/dump \
-H "Content-Type: application/json" \
-H "Authorization: you_project_key_here" \
-d '{
    "action": "someAction",
    "dump": "{\"key\": \"value\"}"
}'
Installation

Navigate to the root of your Node.js project

npm install rdump
Configuration

Add your RDUMP_PRIVATE_KEY environment variable:

RDUMP_PRIVATE_KEY="you_project_key_here"
Usage

Once installed, you can use the package as follows:

import { rdump } from 'rdump';

const action = 'action';
const data = { foo: 'bar', baz: [1, 2, 3] };
rdump(action, data);