Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cd1e35b

Browse files
Fixed endpoint and removed comments
1 parent 58ff9ea commit cd1e35b

21 files changed

+176
-247
lines changed

‎MessageMediaWebhooks.PCL/Controllers/APIController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public async Task<dynamic> CreateAsync(string contentType, Models.CreateRequest
157157

158158
//prepare query string for API call
159159
StringBuilder _queryBuilder = new StringBuilder(_baseUri);
160-
_queryBuilder.Append("/v1/webooks/messages");
160+
_queryBuilder.Append("/v1/webhooks/messages");
161161

162162

163163
//validate and preprocess url
@@ -230,7 +230,7 @@ public async Task DeleteDeleteAndUpdateWebhookAsync(Guid webhookId)
230230

231231
//prepare query string for API call
232232
StringBuilder _queryBuilder = new StringBuilder(_baseUri);
233-
_queryBuilder.Append("/v1/webooks/messages/{webhookId}");
233+
_queryBuilder.Append("/v1/webhooks/messages/{webhookId}");
234234

235235
//process optional template parameters
236236
APIHelper.AppendUrlWithTemplateParameters(_queryBuilder, new Dictionary<string, object>()
@@ -300,7 +300,7 @@ public Models.RetrieveResponse Retrieve(int? page = null, int? pageSize = null)
300300

301301
//prepare query string for API call
302302
StringBuilder _queryBuilder = new StringBuilder(_baseUri);
303-
_queryBuilder.Append("/v1/webooks/messages/");
303+
_queryBuilder.Append("/v1/webhooks/messages/");
304304

305305
//process optional query parameters
306306
APIHelper.AppendUrlWithQueryParameters(_queryBuilder, new Dictionary<string, object>()
@@ -399,7 +399,7 @@ public async Task UpdateAsync(Guid webhookId, string contentType, Models.UpdateR
399399

400400
//prepare query string for API call
401401
StringBuilder _queryBuilder = new StringBuilder(_baseUri);
402-
_queryBuilder.Append("/v1/webooks/messages/{webhookId}");
402+
_queryBuilder.Append("/v1/webhooks/messages/{webhookId}");
403403

404404
//process optional template parameters
405405
APIHelper.AppendUrlWithTemplateParameters(_queryBuilder, new Dictionary<string, object>()

‎MessageMediaWebhooks.PCL/Controllers/BaseController.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
* MessageMediaWebhooks.PCL
3-
*
4-
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
*/
1+
62
using System;
73
using APIMATIC.SDK.Common;
84
using APIMATIC.SDK.Http.Client;
@@ -57,4 +53,4 @@ internal void ValidateResponse(HttpResponse _response, HttpContext _context)
5753
throw new APIException(@"HTTP Response Not OK", _context);
5854
}
5955
}
60-
}
56+
}

‎MessageMediaWebhooks.PCL/Controllers/IAPIController.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
* MessageMediaWebhooks.PCL
3-
*
4-
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
*/
1+
62
using System;
73
using System.Collections.Generic;
84
using System.Dynamic;
@@ -168,15 +164,15 @@ public partial interface IAPIController
168164
Task<Models.RetrieveResponse> RetrieveAsync(int? page = null, int? pageSize = null);
169165

170166
/// <summary>
171-
/// This will update a webhook and returned the updated Webhook.
167+
/// This will update a webhook and returned the updated Webhook.
172168
/// you can update all the attributes individually or together.
173169
/// PS : the new value will override the previous one.
174170
/// ### Parameters
175171
/// + same parameters rules as create webhook apply
176172
/// a **Response 404 is returned when** :
177173
/// <ul>
178174
/// <li>there is no webhook with this `webhookId` </li>
179-
/// </ul>
175+
/// </ul>
180176
/// a **Response 400 is returned when** :
181177
/// <ul>
182178
/// <li>all attributes are null </li>
@@ -191,15 +187,15 @@ public partial interface IAPIController
191187
void Update(Guid webhookId, string contentType, Models.UpdateRequest body);
192188

193189
/// <summary>
194-
/// This will update a webhook and returned the updated Webhook.
190+
/// This will update a webhook and returned the updated Webhook.
195191
/// you can update all the attributes individually or together.
196192
/// PS : the new value will override the previous one.
197193
/// ### Parameters
198194
/// + same parameters rules as create webhook apply
199195
/// a **Response 404 is returned when** :
200196
/// <ul>
201197
/// <li>there is no webhook with this `webhookId` </li>
202-
/// </ul>
198+
/// </ul>
203199
/// a **Response 400 is returned when** :
204200
/// <ul>
205201
/// <li>all attributes are null </li>
@@ -214,4 +210,4 @@ public partial interface IAPIController
214210
Task UpdateAsync(Guid webhookId, string contentType, Models.UpdateRequest body);
215211

216212
}
217-
}
213+
}

‎MessageMediaWebhooks.PCL/IMessageMediaWebhooksClient.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
* MessageMediaWebhooks.PCL
3-
*
4-
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
*/
1+
62
using System;
73
using MessageMedia.Webhooks.Controllers;
84

@@ -17,4 +13,4 @@ public partial interface IMessageMediaWebhooksClient
1713
IAPIController Client { get;}
1814

1915
}
20-
}
16+
}

‎MessageMediaWebhooks.PCL/MessageMediaWebhooks.PCL.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
- MessageMediaWebhooks.PCL
4-
-
5-
- This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
6-
-->
2+
73
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
84
<PropertyGroup>
95
<RootNamespace>MessageMedia.Webhooks</RootNamespace>
@@ -18,7 +14,7 @@
1814
<PropertyGroup>
1915
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
2016
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
21-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
17+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
2218
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
2319
<TargetFrameworkProfile>Profile328</TargetFrameworkProfile>
2420
<FileAlignment>512</FileAlignment>
@@ -41,7 +37,7 @@
4137
<WarningLevel>4</WarningLevel>
4238
</PropertyGroup>
4339
<ItemGroup>
44-
40+
4541
<Reference Include="APIMATIC.SDK.Common">
4642
<HintPath>..\packages\APIMATIC.SDK.Common.2.1.0.0\lib\portable-net40+sl5+wp80+win8+wpa81\APIMATIC.SDK.Common.dll</HintPath>
4743
</Reference>
@@ -97,14 +93,14 @@
9793
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
9894
<PropertyGroup>
9995
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
100-
</PropertyGroup>
96+
</PropertyGroup>
10197
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets'))" />
10298
</Target>
103-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
99+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
104100
Other similar extension points exist, see Microsoft.Common.targets.
105101
<Target Name="BeforeBuild">
106102
</Target>
107103
<Target Name="AfterBuild">
108104
</Target>
109105
-->
110-
</Project>
106+
</Project>

‎MessageMediaWebhooks.PCL/MessageMediaWebhooks.PCL.nuspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
3-
MessageMediaWebhooks.PCL
4-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
-->
2+
63
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
74
<metadata>
85
<id>MessageMediaWebhooks.PCL</id>
@@ -23,4 +20,4 @@ This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https:
2320
<files>
2421
<file src="bin\Release\MessageMediaWebhooks.PCL.dll" target="lib\MessageMediaWebhooks.PCL.dll" />
2522
</files>
26-
</package>
23+
</package>

‎MessageMediaWebhooks.PCL/MessageMediaWebhooksClient.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
* MessageMediaWebhooks.PCL
3-
*
4-
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
*/
1+
62
using System;
73
using MessageMedia.Webhooks.Controllers;
84
using APIMATIC.SDK.Http.Client;
@@ -35,7 +31,7 @@ public IHttpClient SharedHttpClient
3531
set
3632
{
3733
BaseController.ClientInstance = value;
38-
}
34+
}
3935
}
4036
#region Constructors
4137
/// <summary>
@@ -53,4 +49,4 @@ public MessageMediaWebhooksClient(string basicAuthUserName, string basicAuthPass
5349
}
5450
#endregion
5551
}
56-
}
52+
}

‎MessageMediaWebhooks.PCL/Models/BaseModel.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
* MessageMediaWebhooks.PCL
3-
*
4-
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
*/
1+
62
using System;
73
using System.Collections.Generic;
84
using System.ComponentModel;
@@ -29,4 +25,4 @@ protected void onPropertyChanged(String propertyName)
2925
}
3026
}
3127
}
32-
}
28+
}
Lines changed: 39 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/*
2-
* MessageMediaWebhooks.PCL
3-
*
4-
* This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
5-
*/
1+
62
using System;
73
using System.IO;
84
using System.Collections.Generic;
@@ -17,7 +13,7 @@
1713

1814
namespace MessageMedia.Webhooks.Models
1915
{
20-
public class CreateRequest : BaseModel
16+
public class CreateRequest : BaseModel
2117
{
2218
// These fields hold the values for the public properties.
2319
private string url;
@@ -31,13 +27,13 @@ public class CreateRequest : BaseModel
3127
/// target for the webhook. http and https are authorized
3228
/// </summary>
3329
[JsonProperty("url")]
34-
public string Url
35-
{
36-
get
30+
public string Url
31+
{
32+
get
3733
{
38-
return this.url;
39-
}
40-
set
34+
return this.url;
35+
}
36+
set
4137
{
4238
this.url = value;
4339
onPropertyChanged("Url");
@@ -48,13 +44,13 @@ public string Url
4844
/// authorized webhook methods : GET, POST, PUT, DELETE, PATCH
4945
/// </summary>
5046
[JsonProperty("method")]
51-
public string Method
52-
{
53-
get
47+
public string Method
48+
{
49+
get
5450
{
55-
return this.method;
56-
}
57-
set
51+
return this.method;
52+
}
53+
set
5854
{
5955
this.method = value;
6056
onPropertyChanged("Method");
@@ -65,13 +61,13 @@ public string Method
6561
/// JSON, FORM_ENCODED, XML
6662
/// </summary>
6763
[JsonProperty("encoding")]
68-
public string Encoding
69-
{
70-
get
64+
public string Encoding
65+
{
66+
get
7167
{
72-
return this.encoding;
73-
}
74-
set
68+
return this.encoding;
69+
}
70+
set
7571
{
7672
this.encoding = value;
7773
onPropertyChanged("Encoding");
@@ -82,13 +78,13 @@ public string Encoding
8278
/// list of events we want to suscribe to. see docs
8379
/// </summary>
8480
[JsonProperty("events")]
85-
public List<string> Events
86-
{
87-
get
81+
public List<string> Events
82+
{
83+
get
8884
{
89-
return this.events;
90-
}
91-
set
85+
return this.events;
86+
}
87+
set
9288
{
9389
this.events = value;
9490
onPropertyChanged("Events");
@@ -99,13 +95,13 @@ public List<string> Events
9995
/// expected template. see doc for possibilities
10096
/// </summary>
10197
[JsonProperty("template")]
102-
public string Template
103-
{
104-
get
98+
public string Template
99+
{
100+
get
105101
{
106-
return this.template;
107-
}
108-
set
102+
return this.template;
103+
}
104+
set
109105
{
110106
this.template = value;
111107
onPropertyChanged("Template");
@@ -116,17 +112,17 @@ public string Template
116112
/// customized headers.no content Type header because we set it in the encoding attribute. an example below
117113
/// </summary>
118114
[JsonProperty("headers")]
119-
public Models.Headers Headers
120-
{
121-
get
115+
public Models.Headers Headers
116+
{
117+
get
122118
{
123-
return this.headers;
124-
}
125-
set
119+
return this.headers;
120+
}
121+
set
126122
{
127123
this.headers = value;
128124
onPropertyChanged("Headers");
129125
}
130126
}
131127
}
132-
}
128+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /