<commit_before><?php
require_once(__DIR__ . '/bootstrap.php');
require_once(__DIR__ . '/include/checkAuth.php');
?>
<!DOCTYPE html>
<html>
<head>
<?php require_once(__DIR__ . '/include/header.php'); ?>
</head>
<body>
<div class="container">
    <?php require_once(__DIR__ . '/include/top.php'); ?>
    <h1 class="page-header">取得相簿列表</h1>
    <h3>呼叫方式</h3>
    <pre>$pixapi->album->sets($user_name, <a href="http://developer.pixnet.pro/#!/doc/pixnetApi/albumSets" target="blank">$options</a> = array());</pre>
    <div class="well"><a href="http://developer.pixnet.pro/#!/doc/pixnetApi/albumSets" target="blank">Options說明</a></div>
    <h3>實際測試</h3>
    <form class="form-inline" role="form" method="POST">
      <div class="form-group">
        <label class="sr-only" for="query">使用者名稱(必填)</label>
        <input type="text" class="form-control" id="query" name="query" placeholder="請輸入使用者名稱">
      </div>
      <button type="submit" class="btn btn-primary">取得相簿列表</button>
    </form>
    <?php if (!empty($_POST['query'])) {?>
    <h3>實際執行</h3>
    <pre>$pixapi->album->sets(<?= htmlspecialchars($_POST['query']) ?>, $options)</pre>
    <h3>執行結果</h3>
    <pre><?php print_r($pixapi->album->sets->getUserSets($_POST['query'])); ?></pre>
    <?php }?>
</div>
</body>
</html>
<commit_msg>新增 options 說明<commit_after><?php
require_once(__DIR__ . '/bootstrap.php');
require_once(__DIR__ . '/include/checkAuth.php');
?>
<!DOCTYPE html>
<html>
<head>
<?php require_once(__DIR__ . '/include/header.php'); ?>
</head>
<body>
<div class="container">
    <?php require_once(__DIR__ . '/include/top.php'); ?>
    <h1 class="page-header">取得相簿列表</h1>
    <h3>呼叫方式</h3>
    <pre>$pixapi->album->sets($user, <a href="http://developer.pixnet.pro/#!/doc/pixnetApi/albumSets" target="blank">$options</a> = array());</pre>
    <div class="well">
        <p>必傳變數</p>
        <ul>
        <li>
        <p>user</p>
        </li>
        </ul>
        <a href="http://developer.pixnet.pro/#!/doc/pixnetApi/albumSets" target="blank">Options</a>
        <ul>
        <li><p>format</p>

        <p>格式, 支援 xml 與 json. 預設為 json</p></li>
        <li><p>parent_id</p>

        <p>可以藉此指定拿到特定相簿資料夾底下的相簿</p></li>
        <li><p>trim_user</p>

        <p>是否每篇文章都要回傳作者資訊, 如果設定為 1, 則就不回傳. 預設是 0</p></li>
        <li><p>page</p>

        <p>頁數, 預設為1</p></li>
        <li><p>per_page</p>

        <p>每頁幾筆, 預設為100</p></li>
        </ul>
    </div>
    <h3>實際測試</h3>
    <form class="form-inline" role="form" method="POST">
      <div class="form-group">
        <label class="sr-only" for="query">使用者名稱(必填)</label>
        <input type="text" class="form-control" id="query" name="query" placeholder="請輸入使用者名稱">
      </div>
      <button type="submit" class="btn btn-primary">取得相簿列表</button>
    </form>
    <?php if (!empty($_POST['query'])) {?>
    <h3>實際執行</h3>
    <pre>$pixapi->album->sets(<?= htmlspecialchars($_POST['query']) ?>, $options)</pre>
    <h3>執行結果</h3>
    <pre><?php print_r($pixapi->album->sets->getUserSets($_POST['query'])); ?></pre>
    <?php }?>
</div>
</body>
</html>

{'fraction_non_alphanumeric': 0.24197773411918794, 'fraction_numerical': 0.008513425016371971, 'mean_word_length': 3.4729136163982433, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4863193', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1326, 'n_words': 171}