|
1 | 1 | # OneSignalApi.Api.DefaultApi
|
2 | 2 |
|
3 |
| -All URIs are relative to *https://onesignal.com/api/v1* |
| 3 | +All URIs are relative to *https://api.onesignal.com* |
4 | 4 |
|
5 | 5 | Method | HTTP request | Description
|
6 | 6 | ------------- | ------------- | -------------
|
@@ -66,7 +66,7 @@ namespace Example
|
66 | 66 | public static void Main()
|
67 | 67 | {
|
68 | 68 | Configuration config = new Configuration();
|
69 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 69 | + config.BasePath = "https://api.onesignal.com"; |
70 | 70 | // Configure Bearer token for authorization: app_key
|
71 | 71 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
72 | 72 |
|
@@ -145,7 +145,7 @@ namespace Example
|
145 | 145 | public static void Main()
|
146 | 146 | {
|
147 | 147 | Configuration config = new Configuration();
|
148 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 148 | + config.BasePath = "https://api.onesignal.com"; |
149 | 149 | // Configure Bearer token for authorization: app_key
|
150 | 150 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
151 | 151 |
|
@@ -223,7 +223,7 @@ namespace Example
|
223 | 223 | public static void Main()
|
224 | 224 | {
|
225 | 225 | Configuration config = new Configuration();
|
226 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 226 | + config.BasePath = "https://api.onesignal.com"; |
227 | 227 | // Configure Bearer token for authorization: user_key
|
228 | 228 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
229 | 229 |
|
@@ -299,7 +299,7 @@ namespace Example
|
299 | 299 | public static void Main()
|
300 | 300 | {
|
301 | 301 | Configuration config = new Configuration();
|
302 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 302 | + config.BasePath = "https://api.onesignal.com"; |
303 | 303 | // Configure Bearer token for authorization: app_key
|
304 | 304 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
305 | 305 |
|
@@ -375,7 +375,7 @@ namespace Example
|
375 | 375 | public static void Main()
|
376 | 376 | {
|
377 | 377 | Configuration config = new Configuration();
|
378 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 378 | + config.BasePath = "https://api.onesignal.com"; |
379 | 379 | // Configure Bearer token for authorization: app_key
|
380 | 380 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
381 | 381 |
|
@@ -452,7 +452,7 @@ namespace Example
|
452 | 452 | public static void Main()
|
453 | 453 | {
|
454 | 454 | Configuration config = new Configuration();
|
455 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 455 | + config.BasePath = "https://api.onesignal.com"; |
456 | 456 | // Configure Bearer token for authorization: app_key
|
457 | 457 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
458 | 458 |
|
@@ -531,7 +531,7 @@ namespace Example
|
531 | 531 | public static void Main()
|
532 | 532 | {
|
533 | 533 | Configuration config = new Configuration();
|
534 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 534 | + config.BasePath = "https://api.onesignal.com"; |
535 | 535 | // Configure Bearer token for authorization: app_key
|
536 | 536 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
537 | 537 |
|
@@ -614,7 +614,7 @@ namespace Example
|
614 | 614 | public static void Main()
|
615 | 615 | {
|
616 | 616 | Configuration config = new Configuration();
|
617 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 617 | + config.BasePath = "https://api.onesignal.com"; |
618 | 618 | // Configure Bearer token for authorization: app_key
|
619 | 619 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
620 | 620 |
|
@@ -694,7 +694,7 @@ namespace Example
|
694 | 694 | public static void Main()
|
695 | 695 | {
|
696 | 696 | Configuration config = new Configuration();
|
697 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 697 | + config.BasePath = "https://api.onesignal.com"; |
698 | 698 | // Configure Bearer token for authorization: app_key
|
699 | 699 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
700 | 700 |
|
@@ -776,7 +776,7 @@ namespace Example
|
776 | 776 | public static void Main()
|
777 | 777 | {
|
778 | 778 | Configuration config = new Configuration();
|
779 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 779 | + config.BasePath = "https://api.onesignal.com"; |
780 | 780 | // Configure Bearer token for authorization: app_key
|
781 | 781 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
782 | 782 |
|
@@ -855,7 +855,7 @@ namespace Example
|
855 | 855 | public static void Main()
|
856 | 856 | {
|
857 | 857 | Configuration config = new Configuration();
|
858 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 858 | + config.BasePath = "https://api.onesignal.com"; |
859 | 859 | // Configure Bearer token for authorization: app_key
|
860 | 860 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
861 | 861 |
|
@@ -934,7 +934,7 @@ namespace Example
|
934 | 934 | public static void Main()
|
935 | 935 | {
|
936 | 936 | Configuration config = new Configuration();
|
937 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 937 | + config.BasePath = "https://api.onesignal.com"; |
938 | 938 | // Configure Bearer token for authorization: app_key
|
939 | 939 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
940 | 940 |
|
@@ -1011,7 +1011,10 @@ namespace Example
|
1011 | 1011 | public static void Main()
|
1012 | 1012 | {
|
1013 | 1013 | Configuration config = new Configuration();
|
1014 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1014 | + config.BasePath = "https://api.onesignal.com"; |
| 1015 | + // Configure Bearer token for authorization: app_key |
| 1016 | + config.AccessToken = "YOUR_BEARER_TOKEN"; |
| 1017 | + |
1015 | 1018 | var apiInstance = new DefaultApi(config);
|
1016 | 1019 | var appId = "appId_example"; // string |
|
1017 | 1020 | var aliasLabel = "aliasLabel_example"; // string |
|
@@ -1046,7 +1049,7 @@ void (empty response body)
|
1046 | 1049 |
|
1047 | 1050 | ### Authorization
|
1048 | 1051 |
|
1049 |
| -No authorization required |
| 1052 | +[app_key](../README.md#app_key) |
1050 | 1053 |
|
1051 | 1054 | ### HTTP request headers
|
1052 | 1055 |
|
@@ -1087,7 +1090,7 @@ namespace Example
|
1087 | 1090 | public static void Main()
|
1088 | 1091 | {
|
1089 | 1092 | Configuration config = new Configuration();
|
1090 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1093 | + config.BasePath = "https://api.onesignal.com"; |
1091 | 1094 | // Configure Bearer token for authorization: app_key
|
1092 | 1095 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1093 | 1096 |
|
@@ -1166,7 +1169,7 @@ namespace Example
|
1166 | 1169 | public static void Main()
|
1167 | 1170 | {
|
1168 | 1171 | Configuration config = new Configuration();
|
1169 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1172 | + config.BasePath = "https://api.onesignal.com"; |
1170 | 1173 | // Configure Bearer token for authorization: app_key
|
1171 | 1174 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1172 | 1175 |
|
@@ -1245,7 +1248,7 @@ namespace Example
|
1245 | 1248 | public static void Main()
|
1246 | 1249 | {
|
1247 | 1250 | Configuration config = new Configuration();
|
1248 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1251 | + config.BasePath = "https://api.onesignal.com"; |
1249 | 1252 | // Configure Bearer token for authorization: app_key
|
1250 | 1253 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1251 | 1254 |
|
@@ -1323,7 +1326,7 @@ namespace Example
|
1323 | 1326 | public static void Main()
|
1324 | 1327 | {
|
1325 | 1328 | Configuration config = new Configuration();
|
1326 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1329 | + config.BasePath = "https://api.onesignal.com"; |
1327 | 1330 | // Configure Bearer token for authorization: app_key
|
1328 | 1331 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1329 | 1332 |
|
@@ -1399,7 +1402,7 @@ namespace Example
|
1399 | 1402 | public static void Main()
|
1400 | 1403 | {
|
1401 | 1404 | Configuration config = new Configuration();
|
1402 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1405 | + config.BasePath = "https://api.onesignal.com"; |
1403 | 1406 | // Configure Bearer token for authorization: app_key
|
1404 | 1407 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1405 | 1408 |
|
@@ -1478,7 +1481,7 @@ namespace Example
|
1478 | 1481 | public static void Main()
|
1479 | 1482 | {
|
1480 | 1483 | Configuration config = new Configuration();
|
1481 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1484 | + config.BasePath = "https://api.onesignal.com"; |
1482 | 1485 | // Configure Bearer token for authorization: app_key
|
1483 | 1486 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1484 | 1487 |
|
@@ -1557,7 +1560,7 @@ namespace Example
|
1557 | 1560 | public static void Main()
|
1558 | 1561 | {
|
1559 | 1562 | Configuration config = new Configuration();
|
1560 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1563 | + config.BasePath = "https://api.onesignal.com"; |
1561 | 1564 | // Configure Bearer token for authorization: user_key
|
1562 | 1565 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1563 | 1566 |
|
@@ -1633,7 +1636,7 @@ namespace Example
|
1633 | 1636 | public static void Main()
|
1634 | 1637 | {
|
1635 | 1638 | Configuration config = new Configuration();
|
1636 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1639 | + config.BasePath = "https://api.onesignal.com"; |
1637 | 1640 | // Configure Bearer token for authorization: user_key
|
1638 | 1641 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1639 | 1642 |
|
@@ -1705,7 +1708,7 @@ namespace Example
|
1705 | 1708 | public static void Main()
|
1706 | 1709 | {
|
1707 | 1710 | Configuration config = new Configuration();
|
1708 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1711 | + config.BasePath = "https://api.onesignal.com"; |
1709 | 1712 | // Configure Bearer token for authorization: app_key
|
1710 | 1713 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1711 | 1714 |
|
@@ -1782,7 +1785,7 @@ namespace Example
|
1782 | 1785 | public static void Main()
|
1783 | 1786 | {
|
1784 | 1787 | Configuration config = new Configuration();
|
1785 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1788 | + config.BasePath = "https://api.onesignal.com"; |
1786 | 1789 | // Configure Bearer token for authorization: app_key
|
1787 | 1790 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1788 | 1791 |
|
@@ -1860,7 +1863,7 @@ namespace Example
|
1860 | 1863 | public static void Main()
|
1861 | 1864 | {
|
1862 | 1865 | Configuration config = new Configuration();
|
1863 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1866 | + config.BasePath = "https://api.onesignal.com"; |
1864 | 1867 | // Configure Bearer token for authorization: app_key
|
1865 | 1868 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1866 | 1869 |
|
@@ -1938,7 +1941,7 @@ namespace Example
|
1938 | 1941 | public static void Main()
|
1939 | 1942 | {
|
1940 | 1943 | Configuration config = new Configuration();
|
1941 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 1944 | + config.BasePath = "https://api.onesignal.com"; |
1942 | 1945 | // Configure Bearer token for authorization: app_key
|
1943 | 1946 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
1944 | 1947 |
|
@@ -2020,7 +2023,7 @@ namespace Example
|
2020 | 2023 | public static void Main()
|
2021 | 2024 | {
|
2022 | 2025 | Configuration config = new Configuration();
|
2023 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2026 | + config.BasePath = "https://api.onesignal.com"; |
2024 | 2027 | // Configure Bearer token for authorization: app_key
|
2025 | 2028 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2026 | 2029 |
|
@@ -2106,7 +2109,7 @@ namespace Example
|
2106 | 2109 | public static void Main()
|
2107 | 2110 | {
|
2108 | 2111 | Configuration config = new Configuration();
|
2109 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2112 | + config.BasePath = "https://api.onesignal.com"; |
2110 | 2113 | // Configure Bearer token for authorization: app_key
|
2111 | 2114 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2112 | 2115 |
|
@@ -2186,7 +2189,7 @@ namespace Example
|
2186 | 2189 | public static void Main()
|
2187 | 2190 | {
|
2188 | 2191 | Configuration config = new Configuration();
|
2189 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2192 | + config.BasePath = "https://api.onesignal.com"; |
2190 | 2193 | // Configure Bearer token for authorization: app_key
|
2191 | 2194 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2192 | 2195 |
|
@@ -2266,7 +2269,7 @@ namespace Example
|
2266 | 2269 | public static void Main()
|
2267 | 2270 | {
|
2268 | 2271 | Configuration config = new Configuration();
|
2269 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2272 | + config.BasePath = "https://api.onesignal.com"; |
2270 | 2273 | // Configure Bearer token for authorization: app_key
|
2271 | 2274 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2272 | 2275 |
|
@@ -2348,7 +2351,7 @@ namespace Example
|
2348 | 2351 | public static void Main()
|
2349 | 2352 | {
|
2350 | 2353 | Configuration config = new Configuration();
|
2351 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2354 | + config.BasePath = "https://api.onesignal.com"; |
2352 | 2355 | // Configure Bearer token for authorization: app_key
|
2353 | 2356 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2354 | 2357 |
|
@@ -2428,7 +2431,7 @@ namespace Example
|
2428 | 2431 | public static void Main()
|
2429 | 2432 | {
|
2430 | 2433 | Configuration config = new Configuration();
|
2431 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2434 | + config.BasePath = "https://api.onesignal.com"; |
2432 | 2435 | // Configure Bearer token for authorization: app_key
|
2433 | 2436 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2434 | 2437 |
|
@@ -2508,7 +2511,7 @@ namespace Example
|
2508 | 2511 | public static void Main()
|
2509 | 2512 | {
|
2510 | 2513 | Configuration config = new Configuration();
|
2511 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2514 | + config.BasePath = "https://api.onesignal.com"; |
2512 | 2515 | // Configure Bearer token for authorization: user_key
|
2513 | 2516 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2514 | 2517 |
|
@@ -2586,7 +2589,7 @@ namespace Example
|
2586 | 2589 | public static void Main()
|
2587 | 2590 | {
|
2588 | 2591 | Configuration config = new Configuration();
|
2589 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2592 | + config.BasePath = "https://api.onesignal.com"; |
2590 | 2593 | // Configure Bearer token for authorization: app_key
|
2591 | 2594 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2592 | 2595 |
|
@@ -2666,7 +2669,7 @@ namespace Example
|
2666 | 2669 | public static void Main()
|
2667 | 2670 | {
|
2668 | 2671 | Configuration config = new Configuration();
|
2669 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2672 | + config.BasePath = "https://api.onesignal.com"; |
2670 | 2673 | // Configure Bearer token for authorization: app_key
|
2671 | 2674 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2672 | 2675 |
|
@@ -2745,7 +2748,7 @@ namespace Example
|
2745 | 2748 | public static void Main()
|
2746 | 2749 | {
|
2747 | 2750 | Configuration config = new Configuration();
|
2748 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2751 | + config.BasePath = "https://api.onesignal.com"; |
2749 | 2752 | // Configure Bearer token for authorization: app_key
|
2750 | 2753 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2751 | 2754 |
|
@@ -2826,7 +2829,7 @@ namespace Example
|
2826 | 2829 | public static void Main()
|
2827 | 2830 | {
|
2828 | 2831 | Configuration config = new Configuration();
|
2829 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2832 | + config.BasePath = "https://api.onesignal.com"; |
2830 | 2833 | // Configure Bearer token for authorization: app_key
|
2831 | 2834 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2832 | 2835 |
|
@@ -2905,7 +2908,7 @@ namespace Example
|
2905 | 2908 | public static void Main()
|
2906 | 2909 | {
|
2907 | 2910 | Configuration config = new Configuration();
|
2908 |
| - config.BasePath = "https://onesignal.com/api/v1"; |
| 2911 | + config.BasePath = "https://api.onesignal.com"; |
2909 | 2912 | // Configure Bearer token for authorization: app_key
|
2910 | 2913 | config.AccessToken = "YOUR_BEARER_TOKEN";
|
2911 | 2914 |
|
|
0 commit comments