API backward compatibility in v54?
Hi,
I'm having issues with response format from WHM API version 1 in new version 54 of WHM/CPanel.
Such functions as sslissue and generatessl (WHM API 1 Functions - generatessl - Software Development Kit - cPanel Documentation) now return fields groupped in metadata and data objects e.g. for generatessl:
'metadata' => {
'version' => 1,
'reason' => 'Key, Certificate, and CSR generated OK',
'command' => 'generatessl',
'result' => 1
},
'data' => {
...
}
Before v54 result of operation was returns as {results}->{status}, now it is {metadata}->{result}.
Does this mean broken backward compatibility or there's anything else that could affect return format?
Thank you.
-
Hi Aleksey, I just used the 'generatessl' API call on 11.52 and 11.54, and the results were structured the same as far as I could tell. I could see the operation succeeded based on {metadata}->{result} in both cases. Could you give more details about how you're making the API call? There are SSL-related calls in all 5 cPanel & WHM APIs, and the cPanel APIs will return data in a different structure, but the WHM APIs should not be changing. David Nielson cPanel Developer 0
Please sign in to leave a comment.
Comments
1 comment