|
2 | 2 | * OneSignal
|
3 | 3 | * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
4 | 4 | *
|
5 |
| - * The version of the OpenAPI document: 1.2.1 |
| 5 | + * The version of the OpenAPI document: 1.2.2 |
6 | 6 |
|
7 | 7 | *
|
8 | 8 | * NOTE: This class is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT.
|
|
24 | 24 | #include "CppRestOneSignalAPIClient/ApiClient.h"
|
25 | 25 |
|
26 | 26 | #include "CppRestOneSignalAPIClient/model/App.h"
|
27 |
| -#include "CppRestOneSignalAPIClient/model/BadRequestError.h" |
28 | 27 | #include "CppRestOneSignalAPIClient/model/BeginLiveActivityRequest.h"
|
29 | 28 | #include "CppRestOneSignalAPIClient/model/CancelNotificationSuccessResponse.h"
|
30 | 29 | #include "CppRestOneSignalAPIClient/model/CreateNotificationSuccessResponse.h"
|
|
37 | 36 | #include "CppRestOneSignalAPIClient/model/DeletePlayerSuccessResponse.h"
|
38 | 37 | #include "CppRestOneSignalAPIClient/model/DeleteSegmentNotFoundResponse.h"
|
39 | 38 | #include "CppRestOneSignalAPIClient/model/DeleteSegmentSuccessResponse.h"
|
| 39 | +#include "CppRestOneSignalAPIClient/model/ExportEventsSuccessResponse.h" |
40 | 40 | #include "CppRestOneSignalAPIClient/model/ExportPlayersSuccessResponse.h"
|
41 | 41 | #include "CppRestOneSignalAPIClient/model/Export_players_request_body.h"
|
| 42 | +#include "CppRestOneSignalAPIClient/model/GenericError.h" |
42 | 43 | #include "CppRestOneSignalAPIClient/model/Get_notification_request_body.h"
|
43 |
| -#include "CppRestOneSignalAPIClient/model/IdentifyUserConflictResponse.h" |
44 | 44 | #include "CppRestOneSignalAPIClient/model/Inline_response_200.h"
|
45 | 45 | #include "CppRestOneSignalAPIClient/model/Inline_response_200_3.h"
|
46 | 46 | #include "CppRestOneSignalAPIClient/model/Inline_response_201.h"
|
|
52 | 52 | #include "CppRestOneSignalAPIClient/model/OutcomesData.h"
|
53 | 53 | #include "CppRestOneSignalAPIClient/model/Player.h"
|
54 | 54 | #include "CppRestOneSignalAPIClient/model/PlayerSlice.h"
|
| 55 | +#include "CppRestOneSignalAPIClient/model/RateLimiterError.h" |
55 | 56 | #include "CppRestOneSignalAPIClient/model/Segment.h"
|
56 | 57 | #include "CppRestOneSignalAPIClient/model/TransferSubscriptionRequestBody.h"
|
57 | 58 | #include "CppRestOneSignalAPIClient/model/UpdateLiveActivityRequest.h"
|
@@ -140,6 +141,10 @@ class IDefaultApi
|
140 | 141 | utility::string_t activityId,
|
141 | 142 | utility::string_t subscriptionId
|
142 | 143 | ) const = 0;
|
| 144 | + virtual pplx::task<std::shared_ptr<ExportEventsSuccessResponse>> exportEvents( |
| 145 | + utility::string_t notificationId, |
| 146 | + utility::string_t appId |
| 147 | + ) const = 0; |
143 | 148 | virtual pplx::task<std::shared_ptr<ExportPlayersSuccessResponse>> exportPlayers(
|
144 | 149 | utility::string_t appId,
|
145 | 150 | boost::optional<std::shared_ptr<Export_players_request_body>> exportPlayersRequestBody
|
@@ -432,7 +437,19 @@ class DefaultApi : public IDefaultApi
|
432 | 437 | utility::string_t subscriptionId
|
433 | 438 | ) const override;
|
434 | 439 | /// <summary>
|
435 |
| - /// CSV export |
| 440 | + /// Export CSV of Events |
| 441 | + /// </summary> |
| 442 | + /// <remarks> |
| 443 | + /// Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. |
| 444 | + /// </remarks> |
| 445 | + /// <param name="notificationId">The ID of the notification to export events from.</param> |
| 446 | + /// <param name="appId">The ID of the app that the notification belongs to.</param> |
| 447 | + pplx::task<std::shared_ptr<ExportEventsSuccessResponse>> exportEvents( |
| 448 | + utility::string_t notificationId, |
| 449 | + utility::string_t appId |
| 450 | + ) const override; |
| 451 | + /// <summary> |
| 452 | + /// Export CSV of Players |
436 | 453 | /// </summary>
|
437 | 454 | /// <remarks>
|
438 | 455 | /// Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. &#x1F6A7; 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. &#x1F6A7; Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. &#x1F6A7; Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. |
|
|
0 commit comments