mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
Move all composer files inside the common directory
- 2022년 3월 개발팀 결정사항 적용 - 모듈 등 서드파티 자료 개발시 composer를 사용하면 상위 경로에 있는 코어의 composer.json을 수정하고, 코어의 vendor 디렉토리를 건드리는 것이 기본값임 - 이를 방지하기 위해 코어의 composer.json과 vendor를 common 디렉토리 안으로 이동하여, 모듈 경로에서 상위 폴더로 인식하지 않도록 함
This commit is contained in:
parent
7b912d21fc
commit
5fff6b6eab
1478 changed files with 2 additions and 2 deletions
31
common/vendor/coolsms/php-sdk/examples/image/example_delete_images.php
vendored
Normal file
31
common/vendor/coolsms/php-sdk/examples/image/example_delete_images.php
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* #example_delete_images
|
||||
*
|
||||
* This sample code demonstrate how to delete images through CoolSMS Rest API PHP
|
||||
* for more info, visit
|
||||
* www.coolsms.co.kr
|
||||
*/
|
||||
|
||||
use Nurigo\Api\Image;
|
||||
use Nurigo\Exceptions\CoolsmsException;
|
||||
|
||||
require_once __DIR__ . "/../../bootstrap.php";
|
||||
|
||||
// api_key and api_secret can be obtained from www.coolsms.co.kr/credentials
|
||||
$api_key = '#ENTER_YOUR_OWN#';
|
||||
$api_secret = '#ENTER_YOUR_OWN#';
|
||||
|
||||
try {
|
||||
// initiate rest api sdk object
|
||||
$rest = new Image($api_key, $api_secret);
|
||||
|
||||
// image_ids are mandatory. must be filled
|
||||
$image_ids = ''; // image ids. ex)'IM34BWIDJ12','IMG2559GBB'
|
||||
|
||||
$result = $rest->deleteImages($image_ids);
|
||||
print_r($result);
|
||||
} catch(CoolsmsException $e) {
|
||||
echo $e->getMessage(); // get error message
|
||||
echo $e->getCode(); // get error code
|
||||
}
|
||||
31
common/vendor/coolsms/php-sdk/examples/image/example_get_image_info.php
vendored
Normal file
31
common/vendor/coolsms/php-sdk/examples/image/example_get_image_info.php
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* #example_image_info
|
||||
*
|
||||
* This sample code demonstrate how to check image info through CoolSMS Rest API PHP
|
||||
* for more info, visit
|
||||
* www.coolsms.co.kr
|
||||
*/
|
||||
|
||||
use Nurigo\Api\Image;
|
||||
use Nurigo\Exceptions\CoolsmsException;
|
||||
|
||||
require_once __DIR__ . "/../../bootstrap.php";
|
||||
|
||||
// api_key and api_secret can be obtained from www.coolsms.co.kr/credentials
|
||||
$api_key = '#ENTER_YOUR_OWN#';
|
||||
$api_secret = '#ENTER_YOUR_OWN#';
|
||||
|
||||
try {
|
||||
// initiate rest api sdk object
|
||||
$rest = new Image($api_key, $api_secret);
|
||||
|
||||
// image_id are mandatory. must be filled
|
||||
$image_id = ''; // image id
|
||||
|
||||
$result = $rest->getImageInfo($image_id);
|
||||
print_r($result);
|
||||
} catch(CoolsmsException $e) {
|
||||
echo $e->getMessage(); // get error message
|
||||
echo $e->getCode(); // get error code
|
||||
}
|
||||
32
common/vendor/coolsms/php-sdk/examples/image/example_get_image_list.php
vendored
Normal file
32
common/vendor/coolsms/php-sdk/examples/image/example_get_image_list.php
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
/**
|
||||
* #example_image_list
|
||||
*
|
||||
* This sample code demonstrate how to check image list through CoolSMS Rest API PHP
|
||||
* for more info, visit
|
||||
* www.coolsms.co.kr
|
||||
*/
|
||||
|
||||
use Nurigo\Api\Image;
|
||||
use Nurigo\Exceptions\CoolsmsException;
|
||||
|
||||
require_once __DIR__ . "/../../bootstrap.php";
|
||||
|
||||
// api_key and api_secret can be obtained from www.coolsms.co.kr/credentials
|
||||
$api_key = '#ENTER_YOUR_OWN#';
|
||||
$api_secret = '#ENTER_YOUR_OWN#';
|
||||
|
||||
try {
|
||||
// initiate rest api sdk object
|
||||
$rest = new Image($api_key, $api_secret);
|
||||
|
||||
// Optional parameters for your own needs
|
||||
$offset = 0; // default 0
|
||||
$limit = 20; // default 20
|
||||
|
||||
$result = $rest->getImageList($offset, $limit);
|
||||
print_r($result);
|
||||
} catch(CoolsmsException $e) {
|
||||
echo $e->getMessage(); // get error message
|
||||
echo $e->getCode(); // get error code
|
||||
}
|
||||
34
common/vendor/coolsms/php-sdk/examples/image/example_upload_image.php
vendored
Normal file
34
common/vendor/coolsms/php-sdk/examples/image/example_upload_image.php
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* #example_upload_image
|
||||
*
|
||||
* This sample code demonstrate how to upload image through CoolSMS Rest API PHP
|
||||
* for more info, visit
|
||||
* www.coolsms.co.kr
|
||||
*/
|
||||
|
||||
use Nurigo\Api\Image;
|
||||
use Nurigo\Exceptions\CoolsmsException;
|
||||
|
||||
require_once __DIR__ . "/../../bootstrap.php";
|
||||
|
||||
// api_key and api_secret can be obtained from www.coolsms.co.kr/credentials
|
||||
$api_key = '#ENTER_YOUR_OWN#';
|
||||
$api_secret = '#ENTER_YOUR_OWN#';
|
||||
|
||||
try {
|
||||
// initiate rest api sdk object
|
||||
$rest = new Image($api_key, $api_secret);
|
||||
|
||||
// image are mandatory. must be filled
|
||||
$image = 'images/test.jpg'; // image
|
||||
|
||||
// Optional parameters for your own needs
|
||||
// $encoding = 'binary'; // image encoding type (base64, binary) default binary
|
||||
|
||||
$result = $rest->uploadImage($image); // or $rest->uploadImage($image, $encoding)
|
||||
print_r($result);
|
||||
} catch(CoolsmsException $e) {
|
||||
echo $e->getMessage(); // get error message
|
||||
echo $e->getCode(); // get error code
|
||||
}
|
||||
BIN
common/vendor/coolsms/php-sdk/examples/image/images/test.jpg
vendored
Normal file
BIN
common/vendor/coolsms/php-sdk/examples/image/images/test.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue