Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaranjo89 committed Dec 21, 2022
1 parent 59008ed commit 9d2609b
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 294 deletions.
3 changes: 0 additions & 3 deletions sdk/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ docs/GroupsResult.md
docs/Instagram.md
docs/InstagramAllOf.md
docs/InstagramApi.md
docs/InstagramPreviewResponse.md
docs/InstagramResult.md
docs/InstagramResultAllOf.md
docs/InstagramResultAllOfComment.md
Expand Down Expand Up @@ -108,7 +107,6 @@ src/model/GroupsAllOf.js
src/model/GroupsResult.js
src/model/Instagram.js
src/model/InstagramAllOf.js
src/model/InstagramPreviewResponse.js
src/model/InstagramResult.js
src/model/InstagramResultAllOf.js
src/model/InstagramResultAllOfComment.js
Expand Down Expand Up @@ -180,7 +178,6 @@ test/model/GroupsAllOf.spec.js
test/model/GroupsResult.spec.js
test/model/Instagram.spec.js
test/model/InstagramAllOf.spec.js
test/model/InstagramPreviewResponse.spec.js
test/model/InstagramResult.spec.js
test/model/InstagramResultAllOf.spec.js
test/model/InstagramResultAllOfComment.spec.js
Expand Down
2 changes: 0 additions & 2 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ Class | Method | HTTP request | Description
*EchaloasuerteJsSdk.GroupsApi* | [**groupsRead**](docs/GroupsApi.md#groupsRead) | **GET** /groups/{id}/ |
*EchaloasuerteJsSdk.GroupsApi* | [**groupsToss**](docs/GroupsApi.md#groupsToss) | **POST** /groups/{id}/toss/ |
*EchaloasuerteJsSdk.InstagramApi* | [**instagramCreate**](docs/InstagramApi.md#instagramCreate) | **POST** /instagram/ |
*EchaloasuerteJsSdk.InstagramApi* | [**instagramPreview**](docs/InstagramApi.md#instagramPreview) | **GET** /instagram-preview/ |
*EchaloasuerteJsSdk.InstagramApi* | [**instagramRead**](docs/InstagramApi.md#instagramRead) | **GET** /instagram/{id}/ |
*EchaloasuerteJsSdk.InstagramApi* | [**instagramToss**](docs/InstagramApi.md#instagramToss) | **POST** /instagram/{id}/toss/ |
*EchaloasuerteJsSdk.LetterApi* | [**letterCreate**](docs/LetterApi.md#letterCreate) | **POST** /letter/ |
Expand Down Expand Up @@ -176,7 +175,6 @@ Class | Method | HTTP request | Description
- [EchaloasuerteJsSdk.GroupsResult](docs/GroupsResult.md)
- [EchaloasuerteJsSdk.Instagram](docs/Instagram.md)
- [EchaloasuerteJsSdk.InstagramAllOf](docs/InstagramAllOf.md)
- [EchaloasuerteJsSdk.InstagramPreviewResponse](docs/InstagramPreviewResponse.md)
- [EchaloasuerteJsSdk.InstagramResult](docs/InstagramResult.md)
- [EchaloasuerteJsSdk.InstagramResultAllOf](docs/InstagramResultAllOf.md)
- [EchaloasuerteJsSdk.InstagramResultAllOfComment](docs/InstagramResultAllOfComment.md)
Expand Down
43 changes: 0 additions & 43 deletions sdk/docs/InstagramApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ All URIs are relative to *https://raw.githubusercontent.com/should-be-overriden*
Method | HTTP request | Description
------------- | ------------- | -------------
[**instagramCreate**](InstagramApi.md#instagramCreate) | **POST** /instagram/ |
[**instagramPreview**](InstagramApi.md#instagramPreview) | **GET** /instagram-preview/ |
[**instagramRead**](InstagramApi.md#instagramRead) | **GET** /instagram/{id}/ |
[**instagramToss**](InstagramApi.md#instagramToss) | **POST** /instagram/{id}/toss/ |

Expand Down Expand Up @@ -53,48 +52,6 @@ No authorization required
- **Accept**: application/json


## instagramPreview

> InstagramPreviewResponse instagramPreview(postUrl)


### Example

```javascript
import EchaloasuerteJsSdk from 'echaloasuerte-js-sdk';

let apiInstance = new EchaloasuerteJsSdk.InstagramApi();
let postUrl = "postUrl_example"; // String |
apiInstance.instagramPreview(postUrl).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});

```

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**postUrl** | **String**| |

### Return type

[**InstagramPreviewResponse**](InstagramPreviewResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json


## instagramRead

> Instagram instagramRead(id)
Expand Down
11 changes: 0 additions & 11 deletions sdk/docs/InstagramPreviewResponse.md

This file was deleted.

1 change: 1 addition & 0 deletions sdk/docs/InstagramResultAllOfComment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | | [optional]
**username** | **String** | | [optional]
**text** | **String** | | [optional]

Expand Down
18 changes: 9 additions & 9 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 0 additions & 45 deletions sdk/src/api/InstagramApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import ApiClient from "../ApiClient";
import DrawTossPayload from '../model/DrawTossPayload';
import Instagram from '../model/Instagram';
import InstagramPreviewResponse from '../model/InstagramPreviewResponse';
import InstagramResult from '../model/InstagramResult';

/**
Expand Down Expand Up @@ -81,50 +80,6 @@ export default class InstagramApi {
}


/**
* @param {String} postUrl
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstagramPreviewResponse} and HTTP response
*/
instagramPreviewWithHttpInfo(postUrl) {
let postBody = null;
// verify the required parameter 'postUrl' is set
if (postUrl === undefined || postUrl === null) {
throw new Error("Missing the required parameter 'postUrl' when calling instagramPreview");
}

let pathParams = {
};
let queryParams = {
'post_url': postUrl
};
let headerParams = {
};
let formParams = {
};

let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InstagramPreviewResponse;
return this.apiClient.callApi(
'/instagram-preview/', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null
);
}

/**
* @param {String} postUrl
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstagramPreviewResponse}
*/
instagramPreview(postUrl) {
return this.instagramPreviewWithHttpInfo(postUrl)
.then(function(response_and_data) {
return response_and_data.data;
});
}


/**
* @param {String} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instagram} and HTTP response
Expand Down
7 changes: 0 additions & 7 deletions sdk/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import GroupsAllOf from './model/GroupsAllOf';
import GroupsResult from './model/GroupsResult';
import Instagram from './model/Instagram';
import InstagramAllOf from './model/InstagramAllOf';
import InstagramPreviewResponse from './model/InstagramPreviewResponse';
import InstagramResult from './model/InstagramResult';
import InstagramResultAllOf from './model/InstagramResultAllOf';
import InstagramResultAllOfComment from './model/InstagramResultAllOfComment';
Expand Down Expand Up @@ -221,12 +220,6 @@ export {
*/
InstagramAllOf,

/**
* The InstagramPreviewResponse model constructor.
* @property {module:model/InstagramPreviewResponse}
*/
InstagramPreviewResponse,

/**
* The InstagramResult model constructor.
* @property {module:model/InstagramResult}
Expand Down
87 changes: 0 additions & 87 deletions sdk/src/model/InstagramPreviewResponse.js

This file was deleted.

8 changes: 8 additions & 0 deletions sdk/src/model/InstagramResultAllOfComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class InstagramResultAllOfComment {
if (data) {
obj = obj || new InstagramResultAllOfComment();

if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('username')) {
obj['username'] = ApiClient.convertToType(data['username'], 'String');
}
Expand All @@ -60,6 +63,11 @@ class InstagramResultAllOfComment {

}

/**
* @member {String} id
*/
InstagramResultAllOfComment.prototype['id'] = undefined;

/**
* @member {String} username
*/
Expand Down
10 changes: 0 additions & 10 deletions sdk/test/api/InstagramApi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,6 @@
done();
});
});
describe('instagramPreview', function() {
it('should call instagramPreview successfully', function(done) {
//uncomment below and update the code to test instagramPreview
//instance.instagramPreview(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('instagramRead', function() {
it('should call instagramRead successfully', function(done) {
//uncomment below and update the code to test instagramRead
Expand Down
Loading

0 comments on commit 9d2609b

Please sign in to comment.