0.0.84 • Published 6 years ago

kykyapi-client v0.0.84

Weekly downloads
2
License
gpl-3.0
Repository
github
Last release
6 years ago

kykyapi-client

KykyapiClient - JavaScript client for kykyapi-client KYKY Lasi Oy - ERP API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.1
  • Package version: 0.0.83
  • Build package: io.swagger.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 kykyapi-client --save
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

Finally, switch to the directory you want to use your kykyapi-client from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('kykyapi-client') in javascript files from the directory you ran the last command above from.

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, that's to say your javascript file where you actually use this library):

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 KykyapiClient = require('kykyapi-client');

var defaultClient = KykyapiClient.ApiClient.instance;

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

var api = new KykyapiClient.AttachmentsApi()

var body = new KykyapiClient.Attachment(); // {Attachment} Payload

api.createAttachment(body).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://localhost/v1

ClassMethodHTTP requestDescription
KykyapiClient.AttachmentsApicreateAttachmentPOST /attachmentscreate attachment
KykyapiClient.AttachmentsApifindAttachmentGET /attachments/{attachmentId}Find a attachment by id
KykyapiClient.AttachmentsApifindAttachmentDataGET /attachments/{attachmentId}/dataFind a attachment data by id
KykyapiClient.CataloguesApicreateCataloguePOST /cataloguesCreate catalogue
KykyapiClient.CataloguesApideleteCatalogueDELETE /catalogues/{catalogueId}Delete catalogue
KykyapiClient.CataloguesApifindCatalogueGET /catalogues/{catalogueId}Find catalogue
KykyapiClient.CataloguesApilistCataloguesGET /cataloguesList catalogues
KykyapiClient.CataloguesApiupdateCataloguePUT /catalogues/{catalogueId}Update catalogue
KykyapiClient.CustomerOrganizationApicreateCustomerOrganizationPOST /customerOrganizationsCreate customer organization
KykyapiClient.CustomerOrganizationApideleteCustomerOrganizationDELETE /customerOrganizations/{customerOrganizationId}Delete customer organization
KykyapiClient.CustomerOrganizationApifindCustomerOrganizationGET /customerOrganizations/{customerOrganizationId}Find customer organization
KykyapiClient.CustomerOrganizationApilistCustomerOrganizationsGET /customerOrganizationsList customerOrganizations
KykyapiClient.CustomerOrganizationApiupdateCustomerOrganizationPUT /customerOrganizations/{customerOrganizationId}Update customer organization
KykyapiClient.CustomerRepresentativeApicreateCustomerRepresentativePOST /customerRepresentativesCreate customer representative
KykyapiClient.CustomerRepresentativeApideleteCustomerRepresentativeDELETE /customerRepresentatives/{customerRepresentativeId}Delete customer representative
KykyapiClient.CustomerRepresentativeApifindCustomerRepresentativeGET /customerRepresentatives/{customerRepresentativeId}Find customer representative
KykyapiClient.CustomerRepresentativeApilistCustomerRepresentativesGET /customerRepresentativesList customer representatives
KykyapiClient.CustomerRepresentativeApiupdateCustomerRepresentativePUT /customerRepresentatives/{customerRepresentativeId}Update customer representative
KykyapiClient.InternalOrderApicreateInternalOrderPOST /internalOrdersCreate internal order
KykyapiClient.InternalOrderApideleteInternalOrderDELETE /internalOrders/{internalOrderId}Delete internal order
KykyapiClient.InternalOrderApifindInternalOrderGET /internalOrders/{internalOrderId}Find internal order
KykyapiClient.InternalOrderApilistInternalOrdersGET /internalOrdersList internal orders
KykyapiClient.InternalOrderApiupdateInternalOrderPUT /internalOrders/{internalOrderId}Update internal order
KykyapiClient.InvoicesApicreateInvoicePOST /invoicesCreate invoice
KykyapiClient.ListProductApicreateListProductPOST /listProductsCreate list product
KykyapiClient.ListProductApideleteListProductDELETE /listProducts/{listProductId}Delete a list product
KykyapiClient.ListProductApifindListProductGET /listProducts/{listProductId}Find a list product
KykyapiClient.ListProductApilistListProductsGET /listProductsList list products
KykyapiClient.ListProductApiupdateListProductPUT /listProducts/{listProductId}Update list product
KykyapiClient.PurchaseOfferRequestApicreatePurchaseOfferRequestPOST /purchaseOfferRequestsCreate purchase offer request
KykyapiClient.PurchaseOfferRequestApideletePurchaseOfferRequestDELETE /purchaseOfferRequests/{purchaseOfferRequestId}Delete purchase offer request
KykyapiClient.PurchaseOfferRequestApifindPurchaseOfferRequestGET /purchaseOfferRequests/{purchaseOfferRequestId}Find purchase offer request
KykyapiClient.PurchaseOfferRequestApigetPurchaseOfferRequestsPdfGET /purchaseOfferRequests/{purchaseOfferRequestId}/pdfGet purchase offer request PDF
KykyapiClient.PurchaseOfferRequestApilistPurchaseOfferRequestsGET /purchaseOfferRequestsList purchase offer requests
KykyapiClient.PurchaseOfferRequestApiupdatePurchaseOfferRequestPUT /purchaseOfferRequests/{purchaseOfferRequestId}Update purchase offer request
KykyapiClient.PurchaseOrderApicreatePurchaseOrderPOST /purchaseOrdersCreate purchase order
KykyapiClient.PurchaseOrderApideletePurchaseOrderDELETE /purchaseOrders/{purchaseOrderId}Delete purchase order
KykyapiClient.PurchaseOrderApifindPurchaseOrderGET /purchaseOrders/{purchaseOrderId}Find purchase order
KykyapiClient.PurchaseOrderApigetPurchaseOrderPdfGET /purchaseOrders/{purchaseOrderId}/pdfGet purchase order PDF
KykyapiClient.PurchaseOrderApilistPurchaseOrdersGET /purchaseOrdersList purchase orders
KykyapiClient.PurchaseOrderApiupdatePurchaseOrderPUT /purchaseOrders/{purchaseOrderId}Update purchase order
KykyapiClient.RowProductApicreateRowProductPOST /rowProductsCreate row product
KykyapiClient.RowProductApideleteRowProductDELETE /rowProducts/{rowProductId}Delete row product
KykyapiClient.RowProductApifindRowProductGET /rowProducts/{rowProductId}Find row product
KykyapiClient.RowProductApilistRowProductsGET /rowProductsList row products
KykyapiClient.RowProductApiupdateRowProductPUT /rowProducts/{rowProductId}Update row product
KykyapiClient.SaleApicreateSalePOST /salesCreate sale
KykyapiClient.SaleApideleteSaleDELETE /sales/{saleId}Delete sale
KykyapiClient.SaleApifindSaleGET /sales/{saleId}Find sale
KykyapiClient.SaleApilistSalesGET /salesList sales
KykyapiClient.SaleApiupdateSalePUT /sales/{saleId}Update sale
KykyapiClient.SaleOfferApicreateSaleOfferPOST /saleOffersCreate sale offer
KykyapiClient.SaleOfferApideleteSaleOfferDELETE /saleOffers/{saleOfferId}Delete sale offer
KykyapiClient.SaleOfferApifindSaleOfferGET /saleOffers/{saleOfferId}Find sale offer
KykyapiClient.SaleOfferApigetSaleOfferPdfGET /saleOffers/{saleOfferId}/pdfGet sale offer PDF
KykyapiClient.SaleOfferApilistSaleOffersGET /saleOffersList sale offers
KykyapiClient.SaleOfferApiupdateSaleOfferPUT /saleOffers/{saleOfferId}Update sale offer
KykyapiClient.SaleOrderApicreateSaleOrderPOST /saleOrdersCreate sale order
KykyapiClient.SaleOrderApideleteSaleOrderDELETE /saleOrders/{saleOrderId}Delete sale order
KykyapiClient.SaleOrderApifindSaleOrderGET /saleOrders/{saleOrderId}Find sale order
KykyapiClient.SaleOrderApigetSaleOrderPdfGET /saleOrders/{saleOrderId}/pdfGet sale order PDF
KykyapiClient.SaleOrderApilistSaleOrdersGET /saleOrdersList sale orders
KykyapiClient.SaleOrderApiupdateSaleOrderPUT /saleOrders/{saleOrderId}Update sale order
KykyapiClient.SchematicApicreateSchematicPOST /schematicsCreate schematic
KykyapiClient.SchematicApifindSchematicGET /schematics/{schematicId}Find schematic
KykyapiClient.SchematicApifindSchematicDataGET /schematics/{schematicId}/dataFind schematic data
KykyapiClient.SchematicApilistSchematicsGET /schematicsList schematics
KykyapiClient.SchematicApiupdateSchematicPUT /schematics/{schematicId}Update schematic
KykyapiClient.SchematicApiupdateSchematicDataPUT /schematics/{schematicId}/dataUpdate schematic data
KykyapiClient.StorageProductApicreateStorageProductPOST /storageProductsCreate storage product
KykyapiClient.StorageProductApifindStorageProductGET /storageProducts/{storageProductId}Find a storage product
KykyapiClient.StorageProductApilistStorageProductsGET /storageProductsList list products
KykyapiClient.StorageProductApiupdateStorageProductPUT /storageProducts/{storageProductId}Update storage product

Documentation for Models

Documentation for Authorization

bearer

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

6 years ago

0.0.83

6 years ago

0.0.82

6 years ago

0.0.81

6 years ago

0.0.80

6 years ago

0.0.79

6 years ago

0.0.78

6 years ago

0.0.77

6 years ago

0.0.76

6 years ago

0.0.75

6 years ago

0.0.74

6 years ago

0.0.73

6 years ago

0.0.72

6 years ago

0.0.71

6 years ago

0.0.70

6 years ago

0.0.69

6 years ago

0.0.68

6 years ago

0.0.67

6 years ago

0.0.66

6 years ago

0.0.65

6 years ago

0.0.64

6 years ago

0.0.63

6 years ago

0.0.62

6 years ago

0.0.61

6 years ago

0.0.60

6 years ago

0.0.59

6 years ago

0.0.58

7 years ago

0.0.57

7 years ago

0.0.56

7 years ago

0.0.55

7 years ago

0.0.54

7 years ago

0.0.53

7 years ago

0.0.52

7 years ago

0.0.51

7 years ago

0.0.50

7 years ago

0.0.49

7 years ago

0.0.48

7 years ago

0.0.47

7 years ago

0.0.46

7 years ago

0.0.45

7 years ago

0.0.44

7 years ago

0.0.43

7 years ago

0.0.42

7 years ago

0.0.41

7 years ago

0.0.40

7 years ago

0.0.38

7 years ago

0.0.37

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago