import 'package:dub/api.dart';
All URIs are relative to https://api.dub.co
Method | HTTP request | Description |
---|---|---|
trackCustomer | POST /track/customer | Track a customer |
trackLead | POST /track/lead | Track a lead |
trackSale | POST /track/sale | Track a sale |
TrackCustomer200Response trackCustomer(workspaceId, projectSlug, trackCustomerRequest)
Track a customer
Track a customer for an authenticated workspace.
import 'package:dub/api.dart';
final api = Dub().getTrackApi();
final String workspaceId = ws_cluuwcv0r...; // String | The ID of the workspace.
final String projectSlug = projectSlug_example; // String | The slug of the project. This field is deprecated – use `workspaceId` instead.
final TrackCustomerRequest trackCustomerRequest = ; // TrackCustomerRequest |
try {
final response = api.trackCustomer(workspaceId, projectSlug, trackCustomerRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling TrackApi->trackCustomer: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | The ID of the workspace. | |
projectSlug | String | The slug of the project. This field is deprecated – use workspaceId instead. |
[optional] |
trackCustomerRequest | TrackCustomerRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TrackLead200Response trackLead(workspaceId, projectSlug, trackLeadRequest)
Track a lead
Track a lead for a short link.
import 'package:dub/api.dart';
final api = Dub().getTrackApi();
final String workspaceId = ws_cluuwcv0r...; // String | The ID of the workspace.
final String projectSlug = projectSlug_example; // String | The slug of the project. This field is deprecated – use `workspaceId` instead.
final TrackLeadRequest trackLeadRequest = ; // TrackLeadRequest |
try {
final response = api.trackLead(workspaceId, projectSlug, trackLeadRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling TrackApi->trackLead: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | The ID of the workspace. | |
projectSlug | String | The slug of the project. This field is deprecated – use workspaceId instead. |
[optional] |
trackLeadRequest | TrackLeadRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TrackSale200Response trackSale(workspaceId, projectSlug, trackSaleRequest)
Track a sale
Track a sale for a short link.
import 'package:dub/api.dart';
final api = Dub().getTrackApi();
final String workspaceId = ws_cluuwcv0r...; // String | The ID of the workspace.
final String projectSlug = projectSlug_example; // String | The slug of the project. This field is deprecated – use `workspaceId` instead.
final TrackSaleRequest trackSaleRequest = ; // TrackSaleRequest |
try {
final response = api.trackSale(workspaceId, projectSlug, trackSaleRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling TrackApi->trackSale: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
workspaceId | String | The ID of the workspace. | |
projectSlug | String | The slug of the project. This field is deprecated – use workspaceId instead. |
[optional] |
trackSaleRequest | TrackSaleRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]