Skip to content

Instantly share code, notes, and snippets.

<?php
require 'vendor/autoload.php';
$client = new GuzzleHttp\Client();
//$client->setDefaultOption('auth', array('username', 'password', 'Basic|Digest|NTLM|Any'));
$client->setDefaultOption('auth', array('DjangoFR', '********', 'Basic'));
$res = $client->get('http://www.example.com/system/get_user_categories/format/json/user_id/**10**');
@DjangoFR
DjangoFR / KotlinExposedUsingAsteriskInQuery.kt
Last active December 22, 2021 10:45
[Kotlin][Exposed] How to use asterisk in Exposed-Query
fun queryUsingAsterisk(clientId: Long): Query {
val tableAlias = InvoiceTable.alias("i")
val asterisk = object : Expression<String>() {
override fun toQueryBuilder(queryBuilder: QueryBuilder) {
queryBuilder { +"*" }
}
}