We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b880b6f + d26e93b commit b09f438Copy full SHA for b09f438
src/samples/CallbackSample.java
@@ -38,7 +38,9 @@ public static void main(String[] args) throws IOException {
38
Callback callback = new Callback();
39
callback.setCallbackUrl(callbackUrl);
40
callback.setCallbackHost("oss-cn-hangzhou.aliyuncs.com");
41
- callback.setCallbackBody("{\\\"mimeType\\\":${mimeType},\\\"size\\\":${size}}");
+ callback.setCallbackBody("{\\\"bucket\\\":${bucket},\\\"object\\\":${object},"
42
+ + "\\\"mimeType\\\":${mimeType},\\\"size\\\":${size},"
43
+ + "\\\"my_var1\\\":${x:var1},\\\"my_var2\\\":${x:var2}}");
44
callback.setCalbackBodyType(CalbackBodyType.JSON);
45
callback.addCallbackVar("x:var1", "value1");
46
callback.addCallbackVar("x:var2", "value2");
0 commit comments