@php $parameters[] = [ 'name' => 'url', 'type' => $type, 'format' => 'string', 'description' => __('The link to be shortened.') ]; if($type) { $parameters[] = [ 'name' => 'domain', 'type' => 1, 'format' => 'integer', 'description' => __('The domain ID the link to be saved under.') ]; } $parameters[] = [ 'name' => 'alias', 'type' => 0, 'format' => 'string', 'description' => __('The link alias.') ]; $parameters[] = [ 'name' => 'password', 'type' => 0, 'format' => 'string', 'description' => __('The link password.') ]; $parameters[] = [ 'name' => 'space', 'type' => 0, 'format' => 'integer', 'description' => __('The space ID the link to be saved under.') ]; $parameters[] = [ 'name' => 'pixels', 'type' => 0, 'format' => 'array', 'description' => __('The pixel IDs to be integrated in the link.') ]; $parameters[] = [ 'name' => 'disabled', 'type' => 0, 'format' => 'integer', 'description' => __('Whether the link is disabled or not.') . ' ' . __('Possible values are: :values.', [ 'values' => implode(', ', [ __(':value for :name', ['value' => '0', 'name' => ''.__('Active').'']), __(':value for :name', ['value' => '1', 'name' => ''.__('Disabled').'']) ]) ]) . ($type ? ' ' . __('Defaults to: :value.', ['value' => '0']) : '') ]; $parameters[] = [ 'name' => 'privacy', 'type' => 0, 'format' => 'integer', 'description' => __('Whether the link stats are public or not.') . ' ' . __('Possible values are: :values.', [ 'values' => implode(', ', [ __(':value for :name', ['value' => '0', 'name' => ''.__('Public').'']), __(':value for :name', ['value' => '1', 'name' => ''.__('Private').'']), __(':value for :name', ['value' => '2', 'name' => ''.__('Password').'']) ]) ]) . ($type ? ' ' . __('Defaults to: :value.', ['value' => '0']) : '') ]; $parameters[] = [ 'name' => 'privacy_password', 'type' => 0, 'format' => 'string', 'description' => __('The password for the statistics page.') . ' ' . __('Only works with :field set to :value.', ['field' => 'privacy', 'value' => '2']) ]; $parameters[] = [ 'name' => 'expiration_url', 'type' => 0, 'format' => 'string', 'description' => __('The link where the user will be redirected once the link has expired.') ]; $parameters[] = [ 'name' => 'expiration_date', 'type' => 0, 'format' => 'string', 'description' => __('The link expiration date in :format format.', ['format' => 'YYYY-MM-DD']) ]; $parameters[] = [ 'name' => 'expiration_time', 'type' => 0, 'format' => 'string', 'description' => __('The link expiration time in :format format.', ['format' => 'HH:MM']) ]; $parameters[] = [ 'name' => 'expiration_clicks', 'type' => 0, 'format' => 'integer', 'description' => __('The number of clicks after which the link should expire.') ]; $parameters[] = [ 'name' => 'target_type', 'type' => 0, 'format' => 'integer', 'description' => __('The type of targeting.') . ' ' . __('Possible values are: :values.', [ 'values' => implode(', ', [ __(':value for :name', ['value' => '0', 'name' => ''.__('None').'']), __(':value for :name', ['value' => '1', 'name' => ''.__('Geographic').'']), __(':value for :name', ['value' => '2', 'name' => ''.__('Platform').'']), __(':value for :name', ['value' => '4', 'name' => ''.__('Rotation').'']) ]) ]) ]; $parameters[] = [ 'name' => 'country[index][key]', 'type' => 0, 'format' => 'string', 'description' => __('The code of the targeted country.') . ' ' . __('The code must be in :standard standard.', ['standard' => 'ISO 3166-1 alpha-2']) ]; $parameters[] = [ 'name' => 'country[index][value]', 'type' => 0, 'format' => 'string', 'description' => __('The link where the user will be redirected to.') ]; $parameters[] = [ 'name' => 'platform[index][key]', 'type' => 0, 'format' => 'string', 'description' => __('The name of the targeted platform.') . ' ' . __('Possible values are: :values.', ['values' => ''.implode(', ', config('platforms')).'']) ]; $parameters[] = [ 'name' => 'platform[index][value]', 'type' => 0, 'format' => 'string', 'description' => __('The link where the user will be redirected to.') ]; $parameters[] = [ 'name' => 'language[index][key]', 'type' => 0, 'format' => 'string', 'description' => __('The code of the targeted language.') . ' ' . __('The code must be in :standard standard.', ['standard' => 'ISO 639-1 alpha-2']) ]; $parameters[] = [ 'name' => 'language[index][value]', 'type' => 0, 'format' => 'string', 'description' => __('The link where the user will be redirected to.') ]; $parameters[] = [ 'name' => 'rotation[index][value]', 'type' => 0, 'format' => 'string', 'description' => __('The link where the user will be redirected to.') ]; @endphp @include('developers.parameters')