@@ -1155,8 +1155,8 @@ public void TestBuildSubscribeRequestCommon(string[] channels, string[] channelG
1155
1155
reg = string . Format ( "&tr=({0})" , Utility . EncodeUricomponent ( region , ResponseType . SubscribeV2 , false , false ) ) ;
1156
1156
}
1157
1157
1158
- //http://ps.pndsn.com/v2/subscribe/demo-36 /test/0?uuid=customuuid&tt=21221&state={"k":"v"}&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1159
- //http://ps.pndsn.com/v2/subscribe/demo-36 /test/0?uuid=customuuid&tt=0&filter-expr=(region%20%3D%3D%20%22east%22)&channel-group=cg&auth=authKey&pnsdk=PubNub-CSharp-UnityOSX/3.7
1158
+ //http://ps.pndsn.com/v2/subscribe/demo/test/0?uuid=customuuid&tt=21221&state={"k":"v"}&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1159
+ //http://ps.pndsn.com/v2/subscribe/demo/test/0?uuid=customuuid&tt=0&filter-expr=(region%20%3D%3D%20%22east%22)&channel-group=cg&auth=authKey&pnsdk=PubNub-CSharp-UnityOSX/3.7
1160
1160
string expected = string . Format ( "http{0}://{1}/v2/subscribe/{2}/{3}/0?uuid={5}{4}{10}{11}{6}{7}{12}{8}{13}&pnsdk={9}" ,
1161
1161
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey ,
1162
1162
chStr ,
@@ -1393,7 +1393,7 @@ public void TestBuildLeaveRequestCommon(string[] channels, string[] channelGroup
1393
1393
pubnub . Origin , pubnub . AuthenticationKey , Common . SubscribeKey
1394
1394
) ;
1395
1395
1396
- //https://ps.pndsn.com/v2/presence/sub_key/demo-36 /channel/test/leave?uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1396
+ //https://ps.pndsn.com/v2/presence/sub_key/demo/channel/test/leave?uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1397
1397
string expected = string . Format ( "http{0}://{1}/v2/presence/sub_key/{2}/channel/{3}/leave?uuid={4}{7}{5}&pnsdk={6}" ,
1398
1398
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , chStr ,
1399
1399
uuid , authKeyString , Utility . EncodeUricomponent ( PubnubUnity . Version , ResponseType . Leave , false , true ) ,
@@ -1864,7 +1864,7 @@ public void TestBuildPresenceHeartbeatRequestCommon(string[] channelGroups, stri
1864
1864
pubnub . Origin , pubnub . AuthenticationKey , Common . SubscribeKey
1865
1865
) ;
1866
1866
1867
- //https://ps.pndsn.com/v2/presence/sub_key/demo-36 /channel/user_state_channel/heartbeat?uuid=customuuid&state={"k":"v"}&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1867
+ //https://ps.pndsn.com/v2/presence/sub_key/demo/channel/user_state_channel/heartbeat?uuid=customuuid&state={"k":"v"}&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1868
1868
1869
1869
string expected = string . Format ( "http{0}://{1}/v2/presence/sub_key/{2}/channel/{3}/heartbeat?uuid={4}{5}{6}{9}{7}&pnsdk={8}" ,
1870
1870
ssl ? "s" : "" , pubnub . Origin ,
@@ -1989,8 +1989,8 @@ public void TestBuildSetUserStateRequestCommon(bool testCg, bool testCh, bool ss
1989
1989
pubnub . Origin , pubnub . AuthenticationKey , Common . SubscribeKey
1990
1990
) ;
1991
1991
1992
- //https://ps.pndsn.com/v2/presence/sub_key/demo-36 /channel/user_state_channel/uuid/customuuid/data?state={"k":"v"}&uuid=customuuid&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1993
- //https://ps.pndsn.com/v2/presence/sub_key/demo-36 /channel/user_state_channel/uuid/customuuid/data?state={"k":"v"}&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1992
+ //https://ps.pndsn.com/v2/presence/sub_key/demo/channel/user_state_channel/uuid/customuuid/data?state={"k":"v"}&uuid=customuuid&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1993
+ //https://ps.pndsn.com/v2/presence/sub_key/demo/channel/user_state_channel/uuid/customuuid/data?state={"k":"v"}&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
1994
1994
string expected = string . Format ( "http{0}://{1}/v2/presence/sub_key/{2}/channel/{3}/uuid/{4}/data?state={5}{9}&uuid={6}{7}&pnsdk={8}" ,
1995
1995
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , channel , uuid ,
1996
1996
Utility . EncodeUricomponent ( userState , ResponseType . SetUserState , false , false ) ,
@@ -2110,7 +2110,7 @@ public void TestBuildGetUserStateRequestCommon(bool testCg, bool testCh, bool ss
2110
2110
pubnub . Origin , pubnub . AuthenticationKey , Common . SubscribeKey
2111
2111
) ;
2112
2112
2113
- //https://ps.pndsn.com/v2/presence/sub_key/demo-36 /channel/user_state_channel/uuid/customuuid?uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2113
+ //https://ps.pndsn.com/v2/presence/sub_key/demo/channel/user_state_channel/uuid/customuuid?uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2114
2114
string expected = string . Format ( "http{0}://{1}/v2/presence/sub_key/{2}/channel/{3}/uuid/{4}?uuid={6}{9}{7}&pnsdk={8}" ,
2115
2115
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , channel , uuid ,
2116
2116
Utility . EncodeUricomponent ( userState , ResponseType . GetUserState , false , false ) ,
@@ -2240,7 +2240,7 @@ public void TestBuildRegisterDevicePushRequestCommon(bool ssl, string authKey, s
2240
2240
) ;
2241
2241
2242
2242
//[1, "Modified Channels"]
2243
- //https://ps.pndsn.com/v1/push/sub-key/demo-36 /devices/pushToken?add=push_channel&type=apns&uuid=customuuid&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2243
+ //https://ps.pndsn.com/v1/push/sub-key/demo/devices/pushToken?add=push_channel&type=apns&uuid=customuuid&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2244
2244
string expected = string . Format ( "http{0}://{1}/v1/push/sub-key/{2}/devices/{3}?add={4}&type={5}&uuid={6}{7}&pnsdk={8}" ,
2245
2245
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , pushToken ,
2246
2246
Utility . EncodeUricomponent ( channel , ResponseType . PushRegister , true , false ) , pushType . ToString ( ) . ToLower ( ) ,
@@ -2370,7 +2370,7 @@ public void TestBuildRemoveChannelPushRequestCommon(bool ssl, string authKey, st
2370
2370
pubnub . Origin , pubnub . AuthenticationKey , Common . SubscribeKey
2371
2371
) ;
2372
2372
//[1, "Modified Channels"]
2373
- //http://ps.pndsn.com/v1/push/sub-key/demo-36 /devices/pushToken?remove=push_channel&type=mpns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2373
+ //http://ps.pndsn.com/v1/push/sub-key/demo/devices/pushToken?remove=push_channel&type=mpns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2374
2374
string expected = string . Format ( "http{0}://{1}/v1/push/sub-key/{2}/devices/{3}?remove={4}&type={5}&uuid={6}{7}&pnsdk={8}" ,
2375
2375
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , pushToken ,
2376
2376
Utility . EncodeUricomponent ( channel , ResponseType . PushRemove , true , false ) , pushType . ToString ( ) . ToLower ( ) ,
@@ -2501,8 +2501,8 @@ public void TestBuildGetChannelsPushRequestCommon(bool ssl, string authKey, stri
2501
2501
2502
2502
//[1, "Modified Channels"]
2503
2503
//["push_channel"]
2504
- //https://ps.pndsn.com/v1/push/sub-key/demo-36 /devices/pushToken?type=wns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2505
- //https://ps.pndsn.com/v1/push/sub-key/demo-36 /devices/pushToken?type=mpns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2504
+ //https://ps.pndsn.com/v1/push/sub-key/demo/devices/pushToken?type=wns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2505
+ //https://ps.pndsn.com/v1/push/sub-key/demo/devices/pushToken?type=mpns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2506
2506
string expected = string . Format ( "http{0}://{1}/v1/push/sub-key/{2}/devices/{3}?type={4}&uuid={5}{6}&pnsdk={7}" ,
2507
2507
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , pushToken ,
2508
2508
pushType . ToString ( ) . ToLower ( ) ,
@@ -2631,7 +2631,7 @@ public void BuildUnregisterDevicePushRequestCommon(bool ssl, string authKey, str
2631
2631
pubnub . Origin , pubnub . AuthenticationKey , Common . SubscribeKey
2632
2632
) ;
2633
2633
//[1, "Removed Device"]
2634
- //https://ps.pndsn.com/v1/push/sub-key/demo-36 /devices/pushToken/remove?type=wns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2634
+ //https://ps.pndsn.com/v1/push/sub-key/demo/devices/pushToken/remove?type=wns&uuid=customuuid&auth=authKey&pnsdk=PubNub-CSharp-UnityIOS/3.6.9.0
2635
2635
string expected = string . Format ( "http{0}://{1}/v1/push/sub-key/{2}/devices/{3}/remove?type={4}&uuid={5}{6}&pnsdk={7}" ,
2636
2636
ssl ? "s" : "" , pubnub . Origin , Common . SubscribeKey , pushToken ,
2637
2637
pushType . ToString ( ) . ToLower ( ) ,
0 commit comments