summaryrefslogtreecommitdiff
path: root/src/bank-lib/bank_api_history.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-04 23:52:54 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-04 23:52:54 +0200
commit69fa9b41d1896d2d2beeee086308f62b4f1e35c4 (patch)
tree8a6e021b1ecff81f32d3a52dd9cec98732c05a68 /src/bank-lib/bank_api_history.c
parent0e632ffdd26d2473f476e6311f9ab544eb8c8a39 (diff)
downloadexchange-69fa9b41d1896d2d2beeee086308f62b4f1e35c4.tar.gz
exchange-69fa9b41d1896d2d2beeee086308f62b4f1e35c4.tar.bz2
exchange-69fa9b41d1896d2d2beeee086308f62b4f1e35c4.zip
start to add /history testing support to tests, fix some minor issues
Diffstat (limited to 'src/bank-lib/bank_api_history.c')
-rw-r--r--src/bank-lib/bank_api_history.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bank-lib/bank_api_history.c b/src/bank-lib/bank_api_history.c
index 5083e3918..a83ad8fce 100644
--- a/src/bank-lib/bank_api_history.c
+++ b/src/bank-lib/bank_api_history.c
@@ -250,12 +250,12 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx,
{
if (TALER_BANK_DIRECTION_BOTH == direction)
GNUNET_asprintf (&url,
- "/history?account_number=%llu&num_results=%lld",
+ "/history?auth=basic&account_number=%llu&delta=%lld",
(unsigned long long) account_number,
(long long) num_results);
else
GNUNET_asprintf (&url,
- "/history?account_number=%llu&num_results=%lld&direction=%s",
+ "/history?auth=basic&account_number=%llu&delta=%lld&direction=%s",
(unsigned long long) account_number,
(long long) num_results,
(TALER_BANK_DIRECTION_CREDIT == direction) ? "credit" : "debit");
@@ -265,13 +265,13 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx,
{
if (TALER_BANK_DIRECTION_BOTH == direction)
GNUNET_asprintf (&url,
- "/history?account_number=%llu&num_results=%lld&start_row=%llu",
+ "/history?auth=basic&account_number=%llu&delta=%lld&start_row=%llu",
(unsigned long long) account_number,
(long long) num_results,
(unsigned long long) start_row);
else
GNUNET_asprintf (&url,
- "/history?account_number=%llu&num_results=%lld&start_row=%llu&direction=%s",
+ "/history?auth=basic&account_number=%llu&delta=%lld&start_row=%llu&direction=%s",
(unsigned long long) account_number,
(long long) num_results,
(unsigned long long) start_row,