示例#1
0
 /// <summary>
 /// <para>Generate a compressed CSV export of all of your current user data</para>
 /// <para>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.</para>
 /// <para>The file will be compressed using GZip.</para>
 /// <para>The file may take several minutes to generate depending on the number of users in your app.</para>
 /// <para>The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable.</para>
 /// </summary>
 /// <param name="options">Parameters for CSV export</param>
 /// <param name="appId">Optional app id if you want an app id different than what is defined in OneSignalConfiguration</param>
 /// <returns>URL to download CSV export file</returns>
 public CsvExportResponse CsvExport(CsvExportOptions options, string appId = null)
 {
     return(Post <CsvExportResponse>($"players/csv_export?app_id={appId ?? OneSignalConfiguration.GetAppId()}", options));
 }
示例#2
0
 /// <summary>
 /// <para>Generate a compressed CSV export of all of your current user data</para>
 /// <para>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.</para>
 /// <para>The file will be compressed using GZip.</para>
 /// <para>The file may take several minutes to generate depending on the number of users in your app.</para>
 /// <para>The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable.</para>
 /// </summary>
 /// <param name="options">Parameters for CSV export</param>
 /// <param name="appId">Optional app id if you want an app id different than what is defined in OneSignalConfiguration</param>
 /// <returns>URL to download CSV export file</returns>
 public async Task <CsvExportResponse> CsvExportAsync(CsvExportOptions options, string appId = null)
 {
     return(await PostAsync <CsvExportResponse>($"players/csv_export?app_id={appId ?? OneSignalConfiguration.GetAppId()}", options));
 }