Giter VIP home page Giter VIP logo

api-documentation-plugin's People

Contributors

loking avatar quadratnewby avatar rubyluk avatar vlmh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-documentation-plugin's Issues

Sandbox mode

Need to implement sandbox mode for testing orders and translations.

POST sign-up, POST sign-in

I got an error

{"code":"404","message":"API not found"}

when try to send request to

http://api.plugin.onesky.io/1/sign-up
http://api.plugin.onesky.io/1/sign-in

GET items response doesn't contain all locales

First I posted order with this parameters:

from_locale = 'en-US'
to_locales = 'de-DE'

Next I sent request without locale parameter to:

http://api.plugin.onesky.io/1/project/:project_id/items

and got items only with ru-RU translations. But I need to get de-DE translations. (In onesky account I have ru-RU as base language).


When I sent request with locale = 'de-DE'. I got empty string ''. Not json, just empty string
Server crash with error code 500.

POST quotations and orders

I get this error when try to post order or quote

{"code":400,"message":"Input must be an array of hash sets"}

My parameters for order request:

$params = array(
    'api_key' => 'TXV5PolvWtC2Z0jnWuvJPbWYArEyTBhD',
    'timestamp' => $timestamp,
    'dev_hash' => $hash,
    'from_locale' => 'en-US',
    'to_locales' => 'fr-FR,zh-TW',
    'tone' => 'FORMAL',
    'note' => 'This is the note for translators',
    'is_including_review' => 1,
    'items' => '{"product_871":{"name":"Product Sony Smartphone","content":"This is the test description","meta_keywords":"product, sony, smartphone"},"product_821":{"name":"Product Sony Smartphone 2","content":"This is the test description 2","meta_keywords":"product, sony, smartphone"}}',
);

For quote request I use the same parameters without tone, note and is_including_review

locale revmp

We have rebuilt the locale code and it's much more than before.
Therefore, we may change the locale endpoint later for better filtering.
There's nothing changed to you now. I just want to let you know so that you won't feel strange with the result. Will update you if there's any changes.

Thanks!

Empty orders array

I get an empty array:

{"orders":[]}

when I send GET request to:

http://plugin.api.onesky.io/1/project/10478/orders

Order not found when get messages

I get this error:

{"code":404,"message":"Order not found"}

when I try to get messages from this url:

http://plugin.api.onesky.io/1/project/10478/orders/45996/messages?api_key=TXV5PolvWtC2Z0jnWuvJPbWYArEyTBhD&timestamp=".$timestamp."&dev_hash=".$hash

Can't post order and get items

  1. I created new magento project in my account. When I post order via api I get correct response that my order with tasks hass been posted. But when I go to my onesky account I can't see this order.
  2. You created in my account new project "Onesky Testing" and added some items, but they don't have translations.
  3. When I go to "Onesky Testing" project and click on some language I get "The platform does not support collaboration." notification.

Retrieve order status

@nikolaevas As you said, you can help in adding a button or a mass-action to manually reload the order translations. I think we will go for it and not to use cron job since it may involve more people in order to use the extension.

Usually an order may take 1-2 days to finish according to the order size (maybe longer). So if the user re-visit the order page a day after ordering, can we first update the orders before showing to user? That means the user can reload the page and get the updated order status.

Besides, the reload button or mass-action option is make sense to user. Will confirm with you which one to use ASAP.

Error 400 Request cannot be processed

I get this error when I try to post order

{"code":400,"message":"Request cannot be processed"}

Request parameters:

$params = json_encode(array(
    'api_key' => 'TXV5PolvWtC2Z0jnWuvJPbWYArEyTBhD',
    'timestamp' => $timestamp,
    'dev_hash' => $hash,
    'from_locale' => 'en-US',
    'to_locales' => 'fr-FR,zh-TW',
    'items' => array(
        'product_one' => array(
            'title' => 'product one',
            'content' => 'product content'
        )
    )
));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.