- 博客(7)
- 收藏
- 关注
原创 facebook api 广告营销活动统计数据 获取
public class CodeExample { public static void main (String args[]) throws APIException { String access_token = ""; APINodeList<AdsInsights> execute = new AdAccount("account_id", context).getInsights().setDatePreset("日期").execute(.
2020-11-26 17:20:09 1587 1
原创 facebook api accessToken获取
https://developers.facebook.com/docs/graph-api/explorer生成的token有效时间为一小时将对应的app_ID和App_secret和上述拿到的token替换https://graph.facebook.com/oauth/access_token?client_id=App_id&client_secret=App_secret&grant_type=fb_exchange_token&fb_exchange_t...
2020-11-26 17:16:16 2090
转载 Java8 LocalDateTime和Date相互转换
很想要用Java的时间api,但有时候还是需要转换为Date. 二者的相互转换并不是一步到位那么简单,所以,还是需要记录一下转换的apiDate to LocalDateTimeDate todayDate = new Date(); LocalDateTime ldt = todayDate.toInstant() .atZone( ZoneId.systemDefault() ) .toLocalDateTime(); System.out.println(ldt); //2019-0.
2020-11-18 15:54:42 155
转载 java 新特性LocalDate、LocalDateTime与timestamp、Date的转换
1.LocalDate转DateLocalDate nowLocalDate = LocalDate.now();Date date = Date.from(localDate.atStartOfDay(ZoneOffset.ofHours(8)).toInstant());2.LocalDateTime转DateLocalDateTime localDateTime = LocalDateTime.now();Date date = Date.from(localDate..
2020-11-17 09:55:51 642
原创 java 正则替换各种特殊字符 ‘:‘, ‘/‘, ‘?‘, ‘#‘, ‘[‘, ‘]‘, ‘@‘, ‘!‘, ‘$‘, ‘&‘, “‘“, ‘(‘, ‘)‘, ‘*‘, ‘+‘, ‘,‘, ‘;‘,
沃尔玛库存接口SKU码中特殊字符串的替换An arbitrary alphanumeric unique ID, specified by the seller, which identifies each item. This will be used by the seller in the XSD file to refer to each item. Special characters in the sku needing encoding are: ':', '/', '?', '#', '.
2020-11-13 18:30:50 1492
原创 简单的json封装
public static String getJsonToken(String token) { if (Objects.nonNull(token)) { StringBuilder builder = new StringBuilder(); StringBuilder append = builder.append("{\"").append("token\":").append("\"").append(token).append("\"").append.
2020-11-11 16:35:41 182
原创 java.lang.IllegalStateException: closed
java.lang.IllegalStateException: closed at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:408) at okio.RealBufferedSource.rangeEquals(RealBufferedSource.java:402) at okhttp3.internal.Util.bomAwareCharset(Util.java:432) at okhtt...
2020-11-11 16:30:37 2792 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人