-
Notifications
You must be signed in to change notification settings - Fork 6
/
IMicrosoftNewsAPI.cs
174 lines (165 loc) · 7.23 KB
/
IMicrosoftNewsAPI.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace MicrosoftNewsAPI.SDK
{
using Microsoft.Rest;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// </summary>
public partial interface IMicrosoftNewsAPI : System.IDisposable
{
/// <summary>
/// The base URI of the service.
/// </summary>
System.Uri BaseUri { get; set; }
/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
JsonSerializerSettings SerializationSettings { get; }
/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
JsonSerializerSettings DeserializationSettings { get; }
/// <summary>
/// The Feed API is a one stop shop for getting content for any
/// category (ie. autos, sports), search term (ie. Microsoft), or theme
/// (trending feed, related feed).
/// </summary>
/// <param name='apikey'>
/// Security parameter : apikey
/// </param>
/// <param name='ocid'>
/// Security parameter : ocid
/// </param>
/// <param name='query'>
/// Comma separated value for an MSN category, entity, or any freeform
/// search term for which a feed is desired.
/// </param>
/// <param name='nextPageCount'>
/// Indicates the desired number of documents for the next page -
/// Defaults to $top value, or 10 if $top is not specified.
/// </param>
/// <param name='market'>
/// The market.
/// </param>
/// <param name='user'>
/// The user ID of who is making the request, needs to be
/// authenticated.
/// </param>
/// <param name='filter'>
/// ODATA-formatted filter that applies to artifacts. This supports
/// filtering on the following artifact properties:
/// Provider/Id: can filter out specific providers.
/// Type: can filter out specific content types.
/// </param>
/// <param name='activityId'>
/// Use this parameter for if you need to relate your request
/// activities with Microsoft News API performance monitoring
/// </param>
/// <param name='top'>
/// Total number of documents required - (default is 10)
/// </param>
/// <param name='select'>
/// Comma separated fields, for attribute projection purpose
/// </param>
/// <param name='ids'>
/// Get related entities via their ids.
/// </param>
/// <param name='skip'>
/// Number of documents to be skipped from the top.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<object>> GetNewsFeedWithHttpMessagesAsync(string apikey, string ocid, string query = default(string), int? nextPageCount = default(int?), string market = default(string), string user = default(string), string filter = default(string), string activityId = default(string), int? top = default(int?), string select = default(string), string ids = default(string), int? skip = default(int?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Read Market objects. Queryable across markets.
/// </summary>
/// <param name='apikey'>
/// Security parameter : apikey
/// </param>
/// <param name='ocid'>
/// Security parameter : ocid
/// </param>
/// <param name='filter'>
/// OData filter.
/// </param>
/// <param name='activityId'>
/// Use this parameter for if you need to relate your request
/// activities with Microsoft News API performance monitoring
/// </param>
/// <param name='top'>
/// Total number of documents required - (default is 10)
/// </param>
/// <param name='select'>
/// Comma separated fields, for attribute projection purpose
/// </param>
/// <param name='ids'>
/// Get related entities via their ids.
/// </param>
/// <param name='skip'>
/// Number of documents to be skipped from the top.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<object>> GetNewsMarketsWithHttpMessagesAsync(string apikey, string ocid, string filter = default(string), string activityId = default(string), int? top = default(int?), string select = default(string), string ids = default(string), int? skip = default(int?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get available interests.
/// </summary>
/// <param name='apikey'>
/// Security parameter : apikey
/// </param>
/// <param name='ocid'>
/// Security parameter : ocid
/// </param>
/// <param name='market'>
/// The market.
/// </param>
/// <param name='user'>
/// The user ID of who is making the request, needs to be
/// authenticated.
/// </param>
/// <param name='activityId'>
/// Use this parameter for if you need to relate your request
/// activities with Microsoft News API performance monitoring
/// </param>
/// <param name='top'>
/// Total number of documents required - (default is 10)
/// </param>
/// <param name='select'>
/// Comma separated fields, for attribute projection purpose
/// </param>
/// <param name='ids'>
/// Get related entities via their ids.
/// </param>
/// <param name='skip'>
/// Number of documents to be skipped from the top.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<HttpOperationResponse<object>> GetNewsTopicsWithHttpMessagesAsync(string apikey, string ocid, string market = default(string), string user = default(string), string activityId = default(string), int? top = default(int?), string select = default(string), string ids = default(string), int? skip = default(int?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}