NAME

Tomba::LeadsAttributes - Lead attributes management for the Tomba.io API

SYNOPSIS

use Tomba::LeadsAttributes;

my $tomba = Tomba::LeadsAttributes->new("ta_xxxxx", "ts_xxxxx");
my $attrs = $tomba->ListAttributes();

DESCRIPTION

Create, read, update, and delete lead attributes.

ListAttributes

my $data = $tomba->ListAttributes();

Retrieve a list of lead attributes.

See https://docs.tomba.io/api/lead-attributes#get-attributes

GetAttribute

my $data = $tomba->GetAttribute($attribute_id);

Retrieve details for a specific lead attribute.

See https://docs.tomba.io/api/lead-attributes#get-attributes-attributeid

CreateAttribute

my $data = $tomba->CreateAttribute({ name => "priority", type => "string" });

Create a new lead attribute.

See https://docs.tomba.io/api/lead-attributes#post-attributes

UpdateAttribute

my $data = $tomba->UpdateAttribute($attribute_id, { name => "priority", type => "number" });

Update a lead attribute.

See https://docs.tomba.io/api/lead-attributes#put-attributes-attributeid

DeleteAttribute

my $data = $tomba->DeleteAttribute($attribute_id);

Delete a specific lead attribute.

See https://docs.tomba.io/api/lead-attributes#delete-attributes-attributeid

AUTHOR

Mohamed Ben rebia, <b.mohamed@tomba.io>

COPYRIGHT AND LICENSE

Copyright 2023 Mohamed Benrebia <b.mohamed@tomba.io>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0