-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from facebookincubator/hunter/mediaDetailResponse
Improve media get response logging and remove default credential provider
- Loading branch information
Showing
4 changed files
with
77 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/com/meta/cp4m/message/webhook/whatsapp/GetMediaIdBody.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.meta.cp4m.message.webhook.whatsapp; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.net.URI; | ||
|
||
public record GetMediaIdBody( | ||
@JsonProperty("messaging_product") String messagingProduct, | ||
@JsonProperty("mime_type") String mimeType, | ||
@JsonProperty("url") URI url, | ||
@JsonProperty("sha256") String sha256, | ||
@JsonProperty("file_size") String fileSize, | ||
@JsonProperty("id") String id) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters