Permalink
Browse files

Update to URL encode the "since" query string parameter. Fix the host…

…name to no longer point at staging.
  • Loading branch information...
1 parent b6d476a commit 2b7378eeb292b1a8d9afa54f4af48232ad20db3b Ryan Kennedy committed Mar 7, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 export.sh
View
@@ -31,11 +31,11 @@ NEXT_EXPORT=`date "+%s"`
# Perform the next export. Send the OAuth 2 access token and store the UNIX time of this
# export in the filename.
-wget -O export-$NEXT_EXPORT.zip \
- -t 1 \
+curl -v --output export-$NEXT_EXPORT.zip \
--header "Authorization: Bearer $AT" \
- "https://www.staging.yammer.com/api/v1/export?since=$DATE"
-
+ --get --data-urlencode since=$DATE \
+ "https://www.yammer.com/api/v1/export"
+
# Verify that the download completed successfully.
if [ $? != 0 ]; then
echo "Download failed...cleaning up."

3 comments on commit 2b7378e

@worldalan

When using curl, it shows HTTP/1.1 400 Bad Request after TLS handshake, may I ask why it doesn't work or I do something wrong?
I've posted the question with specific error log in it, please check and give me suggestion possibly if you're free.
http://stackoverflow.com/questions/34048016/yammer-data-export-api-shows-http-1-1-400-bad-request

@ryankennedy

Replied with more questions on Stack Overflow.

Please sign in to comment.