Skip to content

Commit 0f2a511

Browse files
authored
Merge pull request #47 from CallFire/develop
Develop
2 parents 4dcf91a + c4027d9 commit 0f2a511

24 files changed

+37
-393
lines changed

CallfireApiClient.nuspec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?><package>
22
<metadata>
33
<id>CallfireApiClient</id>
4-
<version>1.1.16</version>
4+
<version>1.1.17</version>
55
<title>CallFire API v2 client</title>
66
<authors>
77
Vladimir Mikhailov
@@ -15,6 +15,11 @@
1515
<description>C# client library for integration with Callfire REST API v2 services</description>
1616
<releaseNotes>Callfire API client Changelog
1717
=============================
18+
Version 1.1.17 - May 4 2017
19+
- removed subscriptions api (not supported from v2 api client)
20+
- fixed findWebhooks api to use enums instead strings
21+
- trivial tests fixes
22+
1823
Version 1.1.16 - Mar 28 2017
1924
- fixed DayOfWeek enum for scheduler
2025

Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Callfire API client Changelog
22
=============================
3+
Version 1.1.17 - May 4 2017
4+
- removed subscriptions api (not supported from v2 api client)
5+
- fixed findWebhooks api to use enums instead strings
6+
- trivial tests fixes
7+
38
Version 1.1.16 - Mar 28 2017
49
- fixed DayOfWeek enum for scheduler
510

src/CallfireApiClient.IntegrationTests/Api/Campaigns/CallBroadcastsApiIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void StartStopArchiveCampaign()
105105
new Recipient { PhoneNumber = "14246525473" }
106106
}
107107
};
108-
var id = Client.CallBroadcastsApi.Create(broadcast, true);
108+
var id = Client.CallBroadcastsApi.Create(broadcast, false);
109109

110110
CallBroadcast campaign = Client.CallBroadcastsApi.Get(id.Id);
111111
System.Console.WriteLine(campaign);
@@ -134,7 +134,7 @@ public void GetBroadcastCalls()
134134

135135
long testBatchId = (long) calls.Items[0].BatchId;
136136

137-
getCallsRequest = new GetBroadcastCallsTextsRequest { Id = 1, batchId = testBatchId };
137+
getCallsRequest = new GetBroadcastCallsTextsRequest { Id = 1, BatchId = testBatchId };
138138
calls = Client.CallBroadcastsApi.GetCalls(getCallsRequest);
139139
System.Console.WriteLine(calls);
140140
Assert.AreEqual(calls.Items[0].BatchId, testBatchId);

src/CallfireApiClient.IntegrationTests/Api/Campaigns/TextBroadcastsApiIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void GetBroadcastTexts()
103103

104104
long testBatchId = (long)texts.Items[0].BatchId;
105105

106-
request = new GetBroadcastCallsTextsRequest { Id = broadcastId.Id, batchId = testBatchId };
106+
request = new GetBroadcastCallsTextsRequest { Id = broadcastId.Id, BatchId = testBatchId };
107107
texts = Client.TextBroadcastsApi.GetTexts(request);
108108
Assert.AreEqual(texts.Items[0].BatchId, testBatchId);
109109
}

src/CallfireApiClient.IntegrationTests/Api/Contacts/DncApiIntegrationTest.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ public class DncApiIntegrationTest : AbstractIntegrationTest
1414
[Test]
1515
public void FindDncs()
1616
{
17+
CreateDncsRequest crRequest = new CreateDncsRequest()
18+
{
19+
Call = true,
20+
Text = true,
21+
Numbers = new List<string> { "12135551189" },
22+
Source = "testSourceForGetDncByNumber"
23+
};
24+
Client.DncApi.Create(crRequest);
25+
1726
var request = new FindDncNumbersRequest()
1827
{
1928
Text = true,
@@ -26,6 +35,8 @@ public void FindDncs()
2635

2736
Assert.NotNull(dncs);
2837
Assert.AreEqual(dncs.Items.Count, 1);
38+
39+
Client.DncApi.Delete("12135551189");
2940
}
3041

3142
[Test]

src/CallfireApiClient.IntegrationTests/Api/Webhooks/SubscriptionsApiIntegrationTest.cs

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/CallfireApiClient.IntegrationTests/CallfireApiClient.IntegrationTests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<Compile Include="Api\Keywords\KeywordsApiIntegrationTest.cs" />
5858
<Compile Include="Api\Numbers\NumberLeasesApiIntegrationTest.cs" />
5959
<Compile Include="Api\Numbers\NumbersApiIntegrationTest.cs" />
60-
<Compile Include="Api\Webhooks\SubscriptionsApiIntegrationTest.cs" />
6160
<Compile Include="Api\Webhooks\WebhooksApiIntegrationTest.cs" />
6261
<Compile Include="Properties\AssemblyInfo.cs" />
6362
<Compile Include="Api\AbstractIntegrationTest.cs" />

src/CallfireApiClient.Tests/Api/Campaigns/CallBroadcastsApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public void GetCallsWithGetByIdAndBatchIdRequest()
229229
Offset = 5,
230230
Fields = FIELDS,
231231
Id = 11,
232-
batchId = 13
232+
BatchId = 13
233233
};
234234
var calls = Client.CallBroadcastsApi.GetCalls(request);
235235
Assert.That(Serializer.Serialize(calls), Is.EqualTo(expectedJson));

src/CallfireApiClient.Tests/Api/Campaigns/TextBroadcastsApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void GetTextsWithGetByIdAndBatchIdRequest()
168168
Offset = 5,
169169
Fields = FIELDS,
170170
Id = 11,
171-
batchId = 13
171+
BatchId = 13
172172
};
173173
var texts = Client.TextBroadcastsApi.GetTexts(request);
174174
Assert.That(Serializer.Serialize(texts), Is.EqualTo(expectedJson));

src/CallfireApiClient.Tests/Api/Webhooks/SubscriptionsApiTest.cs

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)