0.2.4 • Published 4 years ago

@yusuke-suzuki/qoodish-api-js-client v0.2.4

Weekly downloads
5
License
Unlicense
Repository
-
Last release
4 years ago

@yusuke-suzuki/qoodish-api-js-client

QoodishApiJsClient - JavaScript client for @yusuke-suzuki/qoodish-api-js-client Qoodish API JavaScript Client.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.2.4
  • Package version: 0.2.4
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install @yusuke-suzuki/qoodish-api-js-client --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your @yusuke-suzuki/qoodish-api-js-client from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var QoodishApiJsClient = require('@yusuke-suzuki/qoodish-api-js-client');

var defaultClient = QoodishApiJsClient.ApiClient.instance;
// Configure API key authorization: firebaseAuth
var firebaseAuth = defaultClient.authentications['firebaseAuth'];
firebaseAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//firebaseAuth.apiKeyPrefix['Authorization'] = "Token"

var api = new QoodishApiJsClient.CollaboratorsApi()
var mapId = 1; // {Number} A valid Map ID.
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.mapsMapIdCollaboratorsGet(mapId, callback);

Documentation for API Endpoints

All URIs are relative to https://api.qoodish.com

ClassMethodHTTP requestDescription
QoodishApiJsClient.CollaboratorsApimapsMapIdCollaboratorsGetGET /maps/{map_id}/collaboratorsFetch collaborators
QoodishApiJsClient.CommentsApireviewsReviewIdCommentsCommentIdDeleteDELETE /reviews/{review_id}/comments/{comment_id}Delete review comment
QoodishApiJsClient.CommentsApireviewsReviewIdCommentsPostPOST /reviews/{review_id}/commentsSend review comment
QoodishApiJsClient.DevicesApidevicesRegistrationTokenDeleteDELETE /devices/{registration_token}Delete device
QoodishApiJsClient.DevicesApidevicesRegistrationTokenPutPUT /devices/{registration_token}Register device
QoodishApiJsClient.FollowsApimapsMapIdFollowDeleteDELETE /maps/{map_id}/followUnfollow map
QoodishApiJsClient.FollowsApimapsMapIdFollowPostPOST /maps/{map_id}/followFollow map
QoodishApiJsClient.InvitesApiinvitesGetGET /invitesFetch invites
QoodishApiJsClient.InvitesApimapsMapIdInvitesPostPOST /maps/{map_id}/invitesSend invite
QoodishApiJsClient.IssueContentsApiinappropriateContentsPostPOST /inappropriate_contentsIssue inappropriate content
QoodishApiJsClient.LikesApimapsMapIdLikeDeleteDELETE /maps/{map_id}/likeUnlike map
QoodishApiJsClient.LikesApimapsMapIdLikePostPOST /maps/{map_id}/likeLike map
QoodishApiJsClient.LikesApimapsMapIdLikesGetGET /maps/{map_id}/likesFetch map likes
QoodishApiJsClient.LikesApireviewsReviewIdCommentsCommentIdLikeDeleteDELETE /reviews/{review_id}/comments/{comment_id}/likeUnlike review comment
QoodishApiJsClient.LikesApireviewsReviewIdCommentsCommentIdLikePostPOST /reviews/{review_id}/comments/{comment_id}/likeLike review comment
QoodishApiJsClient.LikesApireviewsReviewIdCommentsCommentIdLikesGetGET /reviews/{review_id}/comments/{comment_id}/likesFetch comment likes
QoodishApiJsClient.LikesApireviewsReviewIdLikeDeleteDELETE /reviews/{review_id}/likeUnlike review
QoodishApiJsClient.LikesApireviewsReviewIdLikePostPOST /reviews/{review_id}/likeLike review
QoodishApiJsClient.LikesApireviewsReviewIdLikesGetGET /reviews/{review_id}/likesFetch review likes
QoodishApiJsClient.LikesApiusersUserIdLikesGetGET /users/{user_id}/likesFetch user likes
QoodishApiJsClient.MapsApimapsGetGET /mapsList Maps
QoodishApiJsClient.MapsApimapsMapIdDeleteDELETE /maps/{map_id}Delete a Map
QoodishApiJsClient.MapsApimapsMapIdGetGET /maps/{map_id}Get Map detail
QoodishApiJsClient.MapsApimapsMapIdPutPUT /maps/{map_id}Update a Map
QoodishApiJsClient.MapsApimapsPostPOST /mapsCreate a new Map
QoodishApiJsClient.MetadataApimapsMapIdMetadataGetGET /maps/{map_id}/metadataGet Map metadata
QoodishApiJsClient.MetadataApireviewsReviewIdMetadataGetGET /reviews/{review_id}/metadataGet Review metadata
QoodishApiJsClient.MetadataApispotsPlaceIdMetadataGetGET /spots/{place_id}/metadataGet Spot metadata
QoodishApiJsClient.NotificationsApinotificationsGetGET /notificationsFetch notifications
QoodishApiJsClient.NotificationsApinotificationsNotificationIdPutPUT /notifications/{notification_id}Update notification
QoodishApiJsClient.PlacesApiplacesGetGET /placesFetch places
QoodishApiJsClient.PushNotificationApiusersUserIdPushNotificationPutPUT /users/{user_id}/push_notificationUpdate push notification
QoodishApiJsClient.ReviewsApimapsMapIdReviewsGetGET /maps/{map_id}/reviewsFetch map reviews
QoodishApiJsClient.ReviewsApimapsMapIdReviewsPostPOST /maps/{map_id}/reviewsCreate review
QoodishApiJsClient.ReviewsApimapsMapIdReviewsReviewIdGetGET /maps/{map_id}/reviews/{review_id}Fetch review
QoodishApiJsClient.ReviewsApimapsMapIdSpotsPlaceIdReviewsGetGET /maps/{map_id}/spots/{place_id}/reviewsFetch reviews on spot
QoodishApiJsClient.ReviewsApireviewsGetGET /reviewsFetch reviews
QoodishApiJsClient.ReviewsApireviewsReviewIdDeleteDELETE /reviews/{review_id}Delete review
QoodishApiJsClient.ReviewsApireviewsReviewIdPutPUT /reviews/{review_id}Update review
QoodishApiJsClient.ReviewsApispotsPlaceIdReviewsGetGET /spots/{place_id}/reviewsFetch spot reviews
QoodishApiJsClient.ReviewsApiusersUserIdReviewsGetGET /users/{user_id}/reviewsFetch user reviews
QoodishApiJsClient.SpotsApimapsMapIdSpotsGetGET /maps/{map_id}/spotsFetch spots on map
QoodishApiJsClient.SpotsApimapsMapIdSpotsPlaceIdGetGET /maps/{map_id}/spots/{place_id}Fetch a spot on map
QoodishApiJsClient.SpotsApispotsGetGET /spotsFetch spots
QoodishApiJsClient.SpotsApispotsPlaceIdGetGET /spots/{place_id}Fetch a spot
QoodishApiJsClient.UserMapsApiusersUserIdMapsGetGET /users/{user_id}/mapsFetch user Maps
QoodishApiJsClient.UsersApiusersGetGET /usersSearch users
QoodishApiJsClient.UsersApiusersPostPOST /usersSign in
QoodishApiJsClient.UsersApiusersUserIdDeleteDELETE /users/{user_id}Delete user account
QoodishApiJsClient.UsersApiusersUserIdGetGET /users/{user_id}Get user profile
QoodishApiJsClient.UsersApiusersUserIdPutPUT /users/{user_id}Update user profile

Documentation for Models

Documentation for Authorization

firebaseAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header
0.2.3

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago