CreatePostQuery
class CreatePostQuery extends AbstractQuery
Builds URL for CreatePost REST-API calls.
Also holds the response after being executed.
Methods
__construct(Post $post, string $username)
The query constructor builds the url and saves it into the url property.
$this
execute(Client $httpClient)
Execute a prepared query.
string
bibliography(string $bibliographyStyleName, string $lang = 'en-US', string $bibliographyStyle = '')
No description
from AbstractQuery
string
getResourceHash()
No description
setResourceHash(string $resourceHash)
No description
Details
at line 60
__construct(Post $post, string $username)
The query constructor builds the url and saves it into the url property.
POST /users/[username]/posts
at line 81
$this
execute(Client $httpClient)
Execute a prepared query.