Slide 14
Slide 14 text
汎用パスオブジェクトの作成 (ソースコード)
$newObject = new Google_Service_Walletobjects_GenericObject([
'id' => '
オブジェクトID',
'classId' => '
クラスID',
'heroImage' => new Google_Service_Walletobjects_Image(['sourceUri' => new Google_Service_Walletobjects_ImageUri([
'uri' => '
カンファレンスバナーのURL',
])]),
'barcode' => new Google_Service_Walletobjects_Barcode(['type' => 'QR_CODE', 'value' => '
受付用QR
に埋め込む文字列']),
'cardTitle' => new Google_Service_Walletobjects_LocalizedString([
'defaultValue' => new Google_Service_Walletobjects_TranslatedString([
'language' => 'ja-JP', 'value' => '
カンファレンス名'
])
]),
'header' => new Google_Service_Walletobjects_LocalizedString([
'defaultValue' => new Google_Service_Walletobjects_TranslatedString([
'language' => 'ja-JP', 'value' => '
参加者名'
])
]),
'subheader' => new Google_Service_Walletobjects_LocalizedString([
'defaultValue' => new Google_Service_Walletobjects_TranslatedString([
'language' => 'ja-JP', 'value' => "
イベント種別 チケット番号"
])
]),
'hexBackgroundColor' => '
チケット上部の背景色', //
未指定の場合はロゴの主要な色が自動設定される
'logo' => new Google_Service_Walletobjects_Image(['sourceUri' => new Google_Service_Walletobjects_ImageUri([
'uri' => '
カンファレンスロゴのURL',
])])
]);
//
登録の流れはクラスと同じ
14