Skip to content

Commit 01967e3

Browse files
authored
Merge pull request #68 from CallFire/develop
1.28
2 parents 8cc97f1 + fc20cd5 commit 01967e3

File tree

5 files changed

+131
-106
lines changed

5 files changed

+131
-106
lines changed

CallfireApiClient.nuspec

Lines changed: 106 additions & 102 deletions
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.27</version>
4+
<version>1.1.28</version>
55
<title>CallFire API v2 client</title>
66
<authors>
77
Vladimir Mikhailov
@@ -13,107 +13,111 @@
1313
<iconUrl>https://www.callfire.com/favicon.ico</iconUrl>
1414
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1515
<description>C# client library for integration with Callfire REST API v2 services</description>
16-
<releaseNotes>Callfire API client Changelog
17-
=============================
18-
Version 1.1.27 - Feb 28 2019
19-
- fixed isssue with Broadcast Status enum
20-
21-
Version 1.1.26 - Jan 17 2019
22-
- updated RestSharp version to 106.6
23-
24-
Version 1.1.24 - Oct 17 2018
25-
- removed potential security vulnerability connected with DotNetZip library
26-
27-
Version 1.1.23 - Sept 26 2018
28-
- added findMedia API operation to sdk
29-
30-
Version 1.1.22 - Sept 04 2018
31-
- updated version of RestSharp client to 106.3.0
32-
- downgraded version of .NET framework to 4.6
33-
34-
Version 1.1.21 - August 10 2018
35-
- added StrongNamer library to sign unsigned assembly in a nuget package
36-
37-
Version 1.1.20 - August 1 2018
38-
- updated .NET framework target version to latest for support TLS 1.2 by default
39-
40-
Version 1.1.19 - Jun 13 2017
41-
- added fromNumber to Recipient object for sending calls/texts
42-
- added strictValidation flag for adding contacts to broadcast
43-
- added useCustomFields to createContactList/addContactListContacts apis
44-
- added media array parameter for TextRecipient
45-
- added a way to upload files from byte array for media and campaign sounds api
46-
47-
Version 1.1.18 - May 29 2017
48-
- upgraded dependencies
49-
50-
Version 1.1.17 - May 4 2017
51-
- removed subscriptions api (not supported from v2 api client)
52-
- fixed findWebhooks api to use enums instead strings
53-
- trivial tests fixes
54-
55-
Version 1.1.16 - Mar 28 2017
56-
- fixed DayOfWeek enum for scheduler
57-
58-
Version 1.1.15 - Jan 27 2017
59-
- added dnc apis
60-
61-
Version 1.1.14 - Jan 17 2017
62-
- added possibility to use client without config file
63-
64-
Version 1.1.13 - Dec 30 2016
65-
- minor fixes for get contacts history api
66-
67-
Version 1.1.12 - Dec 28 2016
68-
- updated CallRecord dto to include originateTime, answerTime, duration, callerName and switchId fields
69-
- updated Webhook dto to include singleUse parameter
70-
- minor extension of requests objects for upload and find sounds api, get contacts history api and find tollfree numbers api
71-
- temporary turning dnc api off due to full remake of callfire dnc apis
72-
73-
Version 1.1.11 - Nov 18 2016
74-
- added deleteCampaignSound api
75-
- added getCreditsHistory api
76-
- remove dnc lists api (not supported anymore)
77-
78-
Version 1.1.10 - Oct 26 2016
79-
- added more parameters to call tracking config in Number Lease config object
80-
81-
Version 1.1.9 - Jul 11 2016
82-
- added loading labels parameter in Number Lease objects
83-
84-
Version 1.1.8 - May 27 2016
85-
- defaultLiveMessage, defaultMachineMessage, defaultLiveMessageSoundId, defaultMachineMessageSoundId, defaultVoice params added to send calls api
86-
- added batch id filter parameter for get broadcast calls/texts
87-
- added fields filter parameter for add sound via call, returns CampaignSound object
88-
- added fields filter parameter for add sound via text-to-speech, returns CampaignSound object
89-
- defaultMessage parameter added to send texts function
90-
- added findWebhookResource and findWebhookResources methods to use new webhooks apis
91-
- resumeNextDay parameter added to CallBroadcast object
92-
- transferMessage, transferMessageSoundId, transferDigit, transferNumber params added to CallRecipient object for sending calls and texts
93-
- added questionResponses parameter to CallRecord object
94-
- added duplicate parameter to CampaignSound object
95-
- get call recordings api functions implemented in CallsApi
96-
97-
Version 1.1.7 - Apr 18 2016
98-
- migration to 4.5 net framework
99-
- migration to gradle
100-
101-
Version 1.1.6 - Mar 25 2016
102-
- added mono debug files generation on Windows platform
103-
- removed get/update batch api calls from TextBroadcastsApi
104-
105-
Version 1.1.5 - Mar 14 2016
106-
- added debug support for Mono platform
107-
- fixed issue with uploading mp3 media
108-
109-
Version 1.1.4 - Mar 4 2016
110-
- added proxy with basic authorization support, see out docs how to configure it.
111-
112-
Version 1.1.3 - Feb 16 2016
113-
- added nuget symbolsource package to debug source code.
114-
115-
Version 1.1.2 - Jan 27 2016
116-
- added find by batchId parameter to FindCalls &amp; FindTexts requests.
16+
<releaseNotes>
17+
Callfire API client Changelog
18+
=============================
19+
Version 1.1.28 - March 06 2019
20+
- added date interval filtering parameters to broadcasts lookup
21+
22+
Version 1.1.27 - Feb 28 2019
23+
- fixed isssue with Broadcast Status enum
24+
25+
Version 1.1.26 - Jan 17 2019
26+
- updated RestSharp version to 106.6
27+
28+
Version 1.1.24 - Oct 17 2018
29+
- removed potential security vulnerability connected with DotNetZip library
30+
31+
Version 1.1.23 - Sept 26 2018
32+
- added findMedia API operation to sdk
33+
34+
Version 1.1.22 - Sept 04 2018
35+
- updated version of RestSharp client to 106.3.0
36+
- downgraded version of .NET framework to 4.6
37+
38+
Version 1.1.21 - August 10 2018
39+
- added StrongNamer library to sign unsigned assembly in a nuget package
40+
41+
Version 1.1.20 - August 1 2018
42+
- updated .NET framework target version to latest for support TLS 1.2 by default
43+
44+
Version 1.1.19 - Jun 13 2017
45+
- added fromNumber to Recipient object for sending calls/texts
46+
- added strictValidation flag for adding contacts to broadcast
47+
- added useCustomFields to createContactList/addContactListContacts apis
48+
- added media array parameter for TextRecipient
49+
- added a way to upload files from byte array for media and campaign sounds api
50+
51+
Version 1.1.18 - May 29 2017
52+
- upgraded dependencies
53+
54+
Version 1.1.17 - May 4 2017
55+
- removed subscriptions api (not supported from v2 api client)
56+
- fixed findWebhooks api to use enums instead strings
57+
- trivial tests fixes
58+
59+
Version 1.1.16 - Mar 28 2017
60+
- fixed DayOfWeek enum for scheduler
61+
62+
Version 1.1.15 - Jan 27 2017
63+
- added dnc apis
64+
65+
Version 1.1.14 - Jan 17 2017
66+
- added possibility to use client without config file
67+
68+
Version 1.1.13 - Dec 30 2016
69+
- minor fixes for get contacts history api
70+
71+
Version 1.1.12 - Dec 28 2016
72+
- updated CallRecord dto to include originateTime, answerTime, duration, callerName and switchId fields
73+
- updated Webhook dto to include singleUse parameter
74+
- minor extension of requests objects for upload and find sounds api, get contacts history api and find tollfree numbers api
75+
- temporary turning dnc api off due to full remake of callfire dnc apis
76+
77+
Version 1.1.11 - Nov 18 2016
78+
- added deleteCampaignSound api
79+
- added getCreditsHistory api
80+
- remove dnc lists api (not supported anymore)
81+
82+
Version 1.1.10 - Oct 26 2016
83+
- added more parameters to call tracking config in Number Lease config object
84+
85+
Version 1.1.9 - Jul 11 2016
86+
- added loading labels parameter in Number Lease objects
87+
88+
Version 1.1.8 - May 27 2016
89+
- defaultLiveMessage, defaultMachineMessage, defaultLiveMessageSoundId, defaultMachineMessageSoundId, defaultVoice params added to send calls api
90+
- added batch id filter parameter for get broadcast calls/texts
91+
- added fields filter parameter for add sound via call, returns CampaignSound object
92+
- added fields filter parameter for add sound via text-to-speech, returns CampaignSound object
93+
- defaultMessage parameter added to send texts function
94+
- added findWebhookResource and findWebhookResources methods to use new webhooks apis
95+
- resumeNextDay parameter added to CallBroadcast object
96+
- transferMessage, transferMessageSoundId, transferDigit, transferNumber params added to CallRecipient object for sending calls and texts
97+
- added questionResponses parameter to CallRecord object
98+
- added duplicate parameter to CampaignSound object
99+
- get call recordings api functions implemented in CallsApi
100+
101+
Version 1.1.7 - Apr 18 2016
102+
- migration to 4.5 net framework
103+
- migration to gradle
104+
105+
Version 1.1.6 - Mar 25 2016
106+
- added mono debug files generation on Windows platform
107+
- removed get/update batch api calls from TextBroadcastsApi
108+
109+
Version 1.1.5 - Mar 14 2016
110+
- added debug support for Mono platform
111+
- fixed issue with uploading mp3 media
112+
113+
Version 1.1.4 - Mar 4 2016
114+
- added proxy with basic authorization support, see out docs how to configure it.
115+
116+
Version 1.1.3 - Feb 16 2016
117+
- added nuget symbolsource package to debug source code.
118+
119+
Version 1.1.2 - Jan 27 2016
120+
- added find by batchId parameter to FindCalls &amp; FindTexts requests.
117121
- fixed NumberApi.findNumbersLocal and NumberApi.findNumbersTollfree methods to accept an updated server responses
118122

119123
Version 1.1.1 - Jan 25 2016

Changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Callfire API client Changelog
22
=============================
3+
Version 1.1.28 - March 06 2019
4+
- added date interval filtering parameters to broadcasts lookup
5+
36
Version 1.1.27 - Feb 28 2019
47
- fixed isssue with Broadcast Status enum
58

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ public void Find()
8888
Limit = 5,
8989
Name = "name",
9090
Label = "label",
91-
Running = true
91+
Running = true,
92+
Scheduled = true,
93+
IntervalBegin = DateTime.UtcNow.AddMonths(-2),
94+
IntervalEnd = DateTime.UtcNow
9295
};
9396
var broadcasts = Client.CallBroadcastsApi.Find(request);
9497
Assert.That(Serializer.Serialize(broadcasts), Is.EqualTo(expectedJson));
@@ -100,6 +103,15 @@ public void Find()
100103
Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("name") && p.Value.Equals("name")));
101104
Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("label") && p.Value.Equals("label")));
102105
Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("running") && p.Value.Equals("True")));
106+
Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("scheduled") && p.Value.Equals("True")));
107+
108+
DateTime intBeg = (DateTime)request.IntervalBegin;
109+
DateTime intEnd = (DateTime)request.IntervalEnd;
110+
long ib = (long)(intBeg.ToUniversalTime() - ClientConstants.EPOCH).TotalMilliseconds;
111+
long ie = (long)(intEnd.ToUniversalTime() - ClientConstants.EPOCH).TotalMilliseconds;
112+
113+
Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("intervalBegin") && p.Value.Equals(ib.ToString())));
114+
Assert.That(restRequest.Value.Parameters, Has.Some.Matches<Parameter>(p => p.Name.Equals("intervalEnd") && p.Value.Equals(ie.ToString())));
103115
}
104116

105117
[Test]

src/CallfireApiClient/Api/Campaigns/Model/Request/FindBroadcastsRequest.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ public class FindBroadcastsRequest : FindRequest
1111

1212
public bool? Running { get; set; }
1313

14+
public bool? Scheduled { get; set; }
15+
16+
public DateTime? IntervalBegin { get; set; }
17+
18+
public DateTime? IntervalEnd { get; set; }
19+
1420
public override string ToString()
1521
{
16-
return string.Format("[{0} FindBroadcastsRequest: Label={1}, Name={2}, Running={3}]",
17-
base.ToString(), Label, Name, Running);
22+
return string.Format("[{0} FindBroadcastsRequest: Label={1}, Name={2}, Running={3}, Scheduled={4}, intervalBegin={5}, intervalEnd={6}]",
23+
base.ToString(), Label, Name, Running, Scheduled, IntervalBegin, IntervalEnd);
1824
}
1925
}
2026
}

src/CallfireApiClient/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
1313
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
1414

15-
[assembly: AssemblyVersion("1.1.27.*")]
15+
[assembly: AssemblyVersion("1.1.28.*")]
1616

1717
// The following attributes are used to specify the signing key for the assembly,
1818
// if desired. See the Mono documentation for more information about signing.

0 commit comments

Comments
 (0)