Ejemplo n.º 1
0
 /// <summary>
 /// This endpoint will return a list of magazines for a given category
 /// </summary>
 /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="token">This is a string token received from the token endpoint</param>
 /// <param name="category">This is the name of the category from the categories endpoint.</param>
 /// <returns>ApiResponse<List<Magazine>></returns>
 public ApiResponse <List <Magazine> > ApiMagazinesByTokenByCategoryGet(string token, string category)
 {
     Client.ApiResponse <ApiResponse <List <Magazine> > > localVarResponse = ApiMagazinesByTokenByCategoryGetWithHttpInfo(token, category);
     return(localVarResponse.Data);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// This endpoint will return a list of magazines for a given category
        /// </summary>
        /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="token">This is a string token received from the token endpoint</param>
        /// <param name="category">This is the name of the category from the categories endpoint.</param>
        /// <returns>Task of ApiResponse<List<Magazine>></returns>
        public async System.Threading.Tasks.Task <ApiResponse <List <Magazine> > > ApiMagazinesByTokenByCategoryGetAsync(string token, string category)
        {
            Client.ApiResponse <ApiResponse <List <Magazine> > > localVarResponse = await ApiMagazinesByTokenByCategoryGetAsyncWithHttpInfo(token, category);

            return(localVarResponse.Data);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Use this API call to initiate your program. It will return a token  that you must then pass along to all subsequent calls.
 /// </summary>
 /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ApiResponse</returns>
 public ApiResponse ApiTokenGet()
 {
     Client.ApiResponse <ApiResponse> localVarResponse = ApiTokenGetWithHttpInfo();
     return(localVarResponse.Data);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Use this API call to initiate your program. It will return a token  that you must then pass along to all subsequent calls.
        /// </summary>
        /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of ApiResponse</returns>
        public async System.Threading.Tasks.Task <ApiResponse> ApiTokenGetAsync()
        {
            Client.ApiResponse <ApiResponse> localVarResponse = await ApiTokenGetAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// This endpoint will return the current subscribers with the magazine Id&#x27;s to which they are subscribed
        /// </summary>
        /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="token">This is a string token received from the token endpoint</param>
        /// <returns>Task of ApiResponse<List<ApiSubscriber>></returns>
        public async System.Threading.Tasks.Task <ApiResponse <List <ApiSubscriber> > > ApiSubscribersByTokenGetAsync(string token)
        {
            Client.ApiResponse <ApiResponse <List <ApiSubscriber> > > localVarResponse = await ApiSubscribersByTokenGetAsyncWithHttpInfo(token);

            return(localVarResponse.Data);
        }
Ejemplo n.º 6
0
 /// <summary>
 /// This endpoint will return the current subscribers with the magazine Id&#x27;s to which they are subscribed
 /// </summary>
 /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="token">This is a string token received from the token endpoint</param>
 /// <returns>ApiResponse<List<ApiSubscriber>></returns>
 public ApiResponse <List <ApiSubscriber> > ApiSubscribersByTokenGet(string token)
 {
     Client.ApiResponse <ApiResponse <List <ApiSubscriber> > > localVarResponse = ApiSubscribersByTokenGetWithHttpInfo(token);
     return(localVarResponse.Data);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Returns a list of available magazine categories
 /// </summary>
 /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="token">This is a string token received from the token endpoint</param>
 /// <returns>ApiResponseListString</returns>
 public ApiResponse <List <String> > ApiCategoriesByTokenGet(string token)
 {
     Client.ApiResponse <ApiResponse <List <String> > > localVarResponse = ApiCategoriesByTokenGetWithHttpInfo(token);
     return(localVarResponse.Data);
 }
Ejemplo n.º 8
0
        /// <summary>
        /// You will be posting your answer to this endpoint. It should be a json object that holds a list of subscribers.
        /// </summary>
        /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="token">This is a string token received from the token endpoint</param>
        /// <param name="body">This is an object with a list of subscriberIds that match the criteria in the exercise (optional)</param>
        /// <returns>Task of ApiResponseAnswerResponse</returns>
        public async System.Threading.Tasks.Task <ApiResponse <AnswerResponse> > ApiAnswerByTokenPostAsync(string token, Answer body = null)
        {
            Client.ApiResponse <ApiResponse <AnswerResponse> > localVarResponse = await ApiAnswerByTokenPostAsyncWithHttpInfo(token, body);

            return(localVarResponse.Data);
        }
Ejemplo n.º 9
0
 /// <summary>
 /// You will be posting your answer to this endpoint. It should be a json object that holds a list of subscribers.
 /// </summary>
 /// <exception cref="VertMarkets.MagazineStore.API.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="token">This is a string token received from the token endpoint</param>
 /// <param name="body">This is an object with a list of subscriberIds that match the criteria in the exercise (optional)</param>
 /// <returns>ApiResponseAnswerResponse</returns>
 public ApiResponse <AnswerResponse> ApiAnswerByTokenPost(string token, Answer body = null)
 {
     Client.ApiResponse <ApiResponse <AnswerResponse> > localVarResponse = ApiAnswerByTokenPostWithHttpInfo(token, body);
     return(localVarResponse.Data);
 }