Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen

/api/import/media/image

Posts image to BellaDati Media Gallery.

Resource Information

Request Parameters

Parameters

Detail

Example

name

(Optional) New image name.

My image

file

Image file.

 

Sample Request / Response

Using curl:

Code Block
curl POST -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -H "Content-Type: multipart/form-data" -F "name=My image" -F "file=@myImage.png" https://service.belladati.com/api/import/media/image

When the form has been submitted successfully, the server replies with an HTTP status code of 200 and an empty body.

 

Sv translation
languageja

/api/import/media/image

BellaDatiメディアギャラリーに画像を投稿します。

リソース情報

URLリソース

https://service.belladati.com/api/import/media/image

HTTPメソッド

POST

リクエストパラメータ

パラメーター

詳細

name

(オプション) 新しい画像名

私の画像

file

画像ファイル


サンプルリクエスト/レスポンス

curl使用:

Code Block
curl POST -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -H "Content-Type: multipart/form-data" -F "name=My image" -F "file=@myImage.png" https://service.belladati.com/api/import/media/image

フォームが正常に送信された場合、サーバは200のHTTPステータスコードと空の本文で応答する。