2016-10-04 49 views
0

想实现通过Java CCU快速清除呼叫,我引用这个doucumentAKAMAI CCU快速清除执行

https://developer.akamai.com/api/purge/ccu/reference.html

import javax.ws.rs.core.MediaType; 

Client client = ClientBuilder.newClient(); 
Entity payload = Entity.json("{ 'hostname': 'www.example.com', 'objects': [ '/graphics/picture.gif', '/documents/brochure.pdf' ]}"); 
Response response = client.target("https://private-anon-3f6068ab95-akamaiopen2ccuccuproduction.apiary-mock.com/ccu/v3/delete/url/{network}") 
    .request(MediaType.APPLICATION_JSON_TYPE) 
    .post(payload); 

System.out.println("status: " + response.getStatus()); 
System.out.println("headers: " + response.getHeaders()); 
System.out.println("body:" + response.readEntity(String.class)); 

在这里我得到与对象和困惑client.target需要指定的url。

“对象: '/graphics/picture.gif', '/documents/brochure.pdf' ]”

难道这些对象和client.target网址将是独一无二的我的应用程序和即将创建的帐户。?

也有任何事情,我必须通过在验证或认证的标题。

回答

0

您需要:

有示例代码的Java签名客户端的页面,显示如何拨打系统电话。

+0

谢谢Kristen,这是AKAMAI基于V3快速清除REST的呼叫所需要的吗?你能指导我的流程,我需要执行基于V3 REST的清除调用。 – krish

+0

这里是关于这个主题的博客文章:https://community.akamai.com/community/developer/blog/2016/07/22/moving-to-ccu-v3-now-with-fast-invalidate –