Redstone의 XMLRPC API를 사용하여 Wordpress에 게시하고 있습니다. 게시물이 만들어졌지만 영구 링크가 올바르게 설정되지 않았습니다. 내 코드 :Wordpress XMLRPC (Redstone) permalink not working
XmlRpcClient client = new XmlRpcClient("xmlrpc link...", true);
HashMap hmContent = new HashMap();
hmContent.put("title", "my post title");
hmContent.put("description", "my new post");
hmContent.put("permaLink", "my-brand-new-post"); <- this should be the permalink
token = client.invoke("metaWeblog.newPost", new Object[] {new Integer(1),
"username",
"password",
hmContent,
true});
permalink입니다 I는 무시됩니다 설정하고 워드 프레스는 게시물 제목에 따라 고유 주소를 만들 수 있었다. 이 문제의 원인은 무엇일까요?
편집 : "wp_slug"값을 추가하면 트릭을 수행합니다. "slug"이 의미하지 않지만 내 생각 :
hmContent.put("wp_slug", "my-brand-new-post");
Wordpress에 대한 호출을 호출 한 후 객체 응답을 사용하는 데 문제가 발생하는 것을 도와 줄 수 있습니까? 객체를 얻은 후 토큰 이름을 어떻게 사용 했습니까? 나는 이런 것을 얻는다. {item_one = info, item_two = info ...} – inspired