WordPress.org

Ready to get started?Download WordPress

Forums

Using XMLRPC from Delphi (2 posts)

  1. IMStream
    Member
    Posted 6 years ago #

    Hi! I want to create my own XMLRPC client. But I have a some trouble...
    I test my client with method "wp.newCategory" and my parameters are blog_id, user name, user pass, and then must bea array with name, description, slug and parent_id.
    The problem in Array. How I to have to use this paremeter?

    I use DXmlRpc package for delphi.
    See some of my code:

    RpcFunction := TRpcFunction.Create;
        RpcFunction.ObjectMethod := 'wp.newCategory';
        RpcFunction.AddItem(1);
        RpcFunction.AddItem('admin');
        RpcFunction.AddItem('pass');
    
    arr := TRPCArray.Create;
    arr.AddItem('name:dd');
    RpcFunction.AddItem(arr);
    
    RpcResult := RpcCaller.Execute(RpcFunction);

    When I use this code, I recive error that a last paremeter(array) is not string.

  2. tobsn
    Member
    Posted 6 years ago #

    http://textsnippets.com/posts/show/1132

    just send the name as string.

    wordpress developers are stupid but now they insert not working functions... how funny. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic