Skip to content

Latest commit

 

History

History
1178 lines (933 loc) · 25.1 KB

File metadata and controls

1178 lines (933 loc) · 25.1 KB

Endpoint

Usages

All the endpoints can be called into three different ways

as a payload

$object  =  new WritesonicPhp('test123');
/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAds */
$endpoint = $object->GoogleAds;
/** @var array */
$array = $endpoint->setPayload([
    "product_name" => 'test',
    "product_description" => 'test',
    "search_term" => 'test',
])->get();

through the setter methods

$object  =  new WritesonicPhp('test123');
/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAds */
$endpoint = $object->GoogleAds;
/** @var array */
$array = $endpoint->setProductName('test')
    ->setProductDescription('test')
    ->setSearchTerm('test')
    ->get();

through the generate method

/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAds */
$endpoint = $writesonic->GoogleAds;
/** @var array */
$endpoint->generate(
	$product_name,
	$product_description,
	$search_term
);

through the get method

/** @var array */
$endpoint = $writesonic->GoogleAds->get([
    "product_name" => 'test',
    "product_description" => 'test',
    "search_term" => 'test',
]);

Supported Objects / Endpoints:

Generate Image

Generate images that will make your content stand out from the crowd.

/** @var \Devkind\WritesonicPhp\Endpoints\GenerateImage */
$endpoint = $writesonic->GenerateImage;
$endpoint->generate(
	$prompt,
	$num_images,
	$image_width,
	$image_height
);

Google Ads

Quality ads that rank in the search results and drive more traffic.

/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAds */
$endpoint = $writesonic->GoogleAds;
$endpoint->generate(
	$product_name,
	$product_description,
	$search_term
);

Google Ad Titles

Unique and appealing ad titles that make people click on your ad and buy from your site.

/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAdTitles */
$endpoint = $writesonic->GoogleAdTitles;
$endpoint->generate(
	$product_name,
	$product_description,
	$primary_keyword,
	$secondary_keywords
);

Google Ad Descriptions

Top-performing Google ad copy that converts visitors into customers.

/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAdDescriptions */
$endpoint = $writesonic->GoogleAdDescriptions;
$endpoint->generate(
	$product_name,
	$product_description,
	$primary_keyword,
	$secondary_keywords
);

Facebook Ads

Facebook ad copies that make your ads truly stand out.

/** @var \Devkind\WritesonicPhp\Endpoints\FacebookAds */
$endpoint = $writesonic->FacebookAds;
$endpoint->generate(
	$product_name,
	$product_description,
	$occasion,
	$promotion
);

Linkedin Ad Headlines

Attention-grabbing, click-inducing, and high-converting ad headlines for Linkedin.

/** @var \Devkind\WritesonicPhp\Endpoints\LinkedinAdHeadlines */
$endpoint = $writesonic->LinkedinAdHeadlines;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords,
	$promotion
);

Linkedin Ad Descriptions

Professional and eye-catching ad descriptions that will make your product shine.

/** @var \Devkind\WritesonicPhp\Endpoints\LinkedinAdDescriptions */
$endpoint = $writesonic->LinkedinAdDescriptions;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords,
	$promotion
);

Linkedin Ads

Eye-catching ads that will not only attract the right audience but also drive them to your lead magnet.

/** @var \Devkind\WritesonicPhp\Endpoints\LinkedinAds */
$endpoint = $writesonic->LinkedinAds;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords,
	$promotion
);

Linkedin Posts

LinkedIn posts that can be used as status updates or promoted to get more engagement.

/** @var \Devkind\WritesonicPhp\Endpoints\LinkedinPosts */
$endpoint = $writesonic->LinkedinPosts;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords
);

Landing Page Headlines

Unique and catchy headlines that are perfect for your product or service.

/** @var \Devkind\WritesonicPhp\Endpoints\LandingPageHeadlines */
$endpoint = $writesonic->LandingPageHeadlines;
$endpoint->generate(
	$product_name,
	$product_description
);

Landing Pages

Tailored high-converting landing page copies that drive more leads, sales, and signups.

/** @var \Devkind\WritesonicPhp\Endpoints\LandingPages */
$endpoint = $writesonic->LandingPages;
$endpoint->generate(
	$product_name,
	$product_description,
	$feature_1,
	$feature_2,
	$feature_3
);

Product Descriptions

Authentic product descriptions that will compel, inspire, and influence.

/** @var \Devkind\WritesonicPhp\Endpoints\ProductDescriptions */
$endpoint = $writesonic->ProductDescriptions;
$endpoint->generate(
	$product_name,
	$product_characteristics,
	$primary_keyword,
	$secondary_keyword,
	$tone_of_voice
);

Amazon Product Descriptions

Descriptions for Amazon products that rank on the first page of the search results.

/** @var \Devkind\WritesonicPhp\Endpoints\AmazonProductDescriptions */
$endpoint = $writesonic->AmazonProductDescriptions;
$endpoint->generate(
	$product_name,
	$product_description
);

Amazon Product Titles

Product titles that will make your product stand out in a sea of competition.

/** @var \Devkind\WritesonicPhp\Endpoints\AmazonProductTitles */
$endpoint = $writesonic->AmazonProductTitles;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords
);

Amazon Product Features

Advantages and features of your products that will make them irresistible to shoppers.

/** @var \Devkind\WritesonicPhp\Endpoints\AmazonProductFeatures */
$endpoint = $writesonic->AmazonProductFeatures;
$endpoint->generate(
	$product_name,
	$product_description
);

Amazon Ad Headlines

Awesome Amazon ad headlines that will increase your conversion rate.

/** @var \Devkind\WritesonicPhp\Endpoints\AmazonAdHeadlines */
$endpoint = $writesonic->AmazonAdHeadlines;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords
);

Blog Ideas

Article/blog ideas that you can use to generate more traffic, leads, and sales for your business.

/** @var \Devkind\WritesonicPhp\Endpoints\BlogIdeas */
$endpoint = $writesonic->BlogIdeas;
$endpoint->generate(
	$topic,
	$primary_keyword
);

Blog Intros

Enticing article/blog introductions that capture the attention of the audience.

/** @var \Devkind\WritesonicPhp\Endpoints\BlogIntros */
$endpoint = $writesonic->BlogIntros;
$endpoint->generate(
	$blog_title
);

Blog Outlines

Detailed article outlines that help you write better content on a consistent basis.

/** @var \Devkind\WritesonicPhp\Endpoints\BlogOutlines */
$endpoint = $writesonic->BlogOutlines;
$endpoint->generate(
	$blog_title,
	$blog_intro
);

Feature To Benefits

Unique content that focuses on features to emphasize benefits of your product or service.

/** @var \Devkind\WritesonicPhp\Endpoints\FeatureToBenefits */
$endpoint = $writesonic->FeatureToBenefits;
$endpoint->generate(
	$product_description,
	$feature
);

Content Rephrase

Rephrase your content in a different voice and style to appeal to different readers.

/** @var \Devkind\WritesonicPhp\Endpoints\ContentRephrase */
$endpoint = $writesonic->ContentRephrase;
$endpoint->generate(
	$content_to_rephrase,
	$tone_of_voice
);

Sentence Expand

Expand short sentences into more descriptive and interesting ones.

/** @var \Devkind\WritesonicPhp\Endpoints\SentenceExpand */
$endpoint = $writesonic->SentenceExpand;
$endpoint->generate(
	$content_to_expand,
	$tone_of_voice
);

Content Shorten

Short your content in a different voice and style to appeal to different readers.

/** @var \Devkind\WritesonicPhp\Endpoints\ContentShorten */
$endpoint = $writesonic->ContentShorten;
$endpoint->generate(
	$content_to_shorten
);

Listicle Ideas

Creative listicle ideas that are easy to write and perform well on social media.

/** @var \Devkind\WritesonicPhp\Endpoints\ListicleIdeas */
$endpoint = $writesonic->ListicleIdeas;
$endpoint->generate(
	$search_term
);

Emails

Professional-looking emails that help you engage leads and customers.

/** @var \Devkind\WritesonicPhp\Endpoints\Emails */
$endpoint = $writesonic->Emails;
$endpoint->generate(
	$key_points
);

Emails V2

Professional-looking emails that help you engage leads and customers.

/** @var \Devkind\WritesonicPhp\Endpoints\EmailsV2 */
$endpoint = $writesonic->EmailsV2;
$endpoint->generate(
	$recipient,
	$recipient_position,
	$description
);

Growth Ideas

High-impact growth tactics to help your business grow.

/** @var \Devkind\WritesonicPhp\Endpoints\GrowthIdeas */
$endpoint = $writesonic->GrowthIdeas;
$endpoint->generate(
	$product_name,
	$product_description,
	$target_keywords,
	$target_audience
);

Pas

The main formula for writing high-converting sales copy.

/** @var \Devkind\WritesonicPhp\Endpoints\Pas */
$endpoint = $writesonic->Pas;
$endpoint->generate(
	$product_name,
	$product_description
);

Aida

Tried and tested formula of Attention, Interest, Desire, Action that is proven to convert.

/** @var \Devkind\WritesonicPhp\Endpoints\Aida */
$endpoint = $writesonic->Aida;
$endpoint->generate(
	$product_description
);

Seo Meta Tags Home

A set of optimized meta title and meta description tags that will boost your search rankings for your home page.

/** @var \Devkind\WritesonicPhp\Endpoints\MetaHome */
$endpoint = $writesonic->MetaHome;
$endpoint->generate(
	$product_name,
	$product_description,
	$search_term,
	$primary_keyword
);

Seo Meta Tags Blog

A set of optimized meta title and meta description tags that will boost your search rankings for your blog.

/** @var \Devkind\WritesonicPhp\Endpoints\MetaBlog */
$endpoint = $writesonic->MetaBlog;
$endpoint->generate(
	$blog_description,
	$search_term,
	$blog_title,
	$primary_keyword
);

Seo Meta Tags Product

A set of optimized meta title and meta description tags that will boost your search rankings for your product page.

/** @var \Devkind\WritesonicPhp\Endpoints\MetaProd */
$endpoint = $writesonic->MetaProd;
$endpoint->generate(
	$product_name,
	$product_description,
	$search_term,
	$company_name,
	$primary_keyword
);

Youtube Titles

Catchy titles that attract more views and increase the number of shares.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeTitles */
$endpoint = $writesonic->YoutubeTitles;
$endpoint->generate(
	$video_description,
	$search_term,
	$tone_of_voice
);

Youtube Ideas

Ready-made product video campaign ideas for you to use on YouTube.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeIdeas */
$endpoint = $writesonic->YoutubeIdeas;
$endpoint->generate(
	$video_topic,
	$search_term,
	$tone_of_voice
);

Youtube Outlines

Video outlines that are a breeze to create and uber-engaging.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeOutlines */
$endpoint = $writesonic->YoutubeOutlines;
$endpoint->generate(
	$video_title,
	$search_term,
	$tone_of_voice
);

Youtube Descriptions

Catchy and persuasive YouTube descriptions that help your videos rank higher.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeDescriptions */
$endpoint = $writesonic->YoutubeDescriptions;
$endpoint->generate(
	$video_title,
	$search_term,
	$tone_of_voice
);

Youtube Intros

Catchy intros that will get viewers hooked before they even start watching.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeIntros */
$endpoint = $writesonic->YoutubeIntros;
$endpoint->generate(
	$video_title,
	$search_term,
	$tone_of_voice
);

Keyword Extract

Keywords extracted from content that you can use for your optimization, SEO, or content creation purposes.

/** @var \Devkind\WritesonicPhp\Endpoints\KeywordExtract */
$endpoint = $writesonic->KeywordExtract;
$endpoint->generate(
	$content
);

Product Names

Catchy and meaningful names that fit your product or service.

/** @var \Devkind\WritesonicPhp\Endpoints\ProductNames */
$endpoint = $writesonic->ProductNames;
$endpoint->generate(
	$product_description,
	$target_keywords
);

Analogies

Unique analogies that make your sales pitch more memorable and engaging.

/** @var \Devkind\WritesonicPhp\Endpoints\Analogies */
$endpoint = $writesonic->Analogies;
$endpoint->generate(
	$content
);

Short Press Releases

Press release that you can use to promote your product or service to the media.

/** @var \Devkind\WritesonicPhp\Endpoints\ShortPressReleases */
$endpoint = $writesonic->ShortPressReleases;
$endpoint->generate(
	$information,
	$product_name,
	$target_keyword,
	$tone_of_voice
);

Company Bios

Short and sweet company bio that will help you connect with your target audience.

/** @var \Devkind\WritesonicPhp\Endpoints\CompanyBios */
$endpoint = $writesonic->CompanyBios;
$endpoint->generate(
	$company_name,
	$company_info,
	$tone_of_voice
);

Company Vision

A vision that attracts the right people, clients, and employees.

/** @var \Devkind\WritesonicPhp\Endpoints\CompanyVision */
$endpoint = $writesonic->CompanyVision;
$endpoint->generate(
	$company_name,
	$company_description
);

Company Mission

A clear and concise statement of your company's goals and purpose.

/** @var \Devkind\WritesonicPhp\Endpoints\CompanyMission */
$endpoint = $writesonic->CompanyMission;
$endpoint->generate(
	$company_name,
	$company_description
);

Personal Bios

Perfect bio copy that shows your expertise and drives more clients to you.

/** @var \Devkind\WritesonicPhp\Endpoints\PersonalBios */
$endpoint = $writesonic->PersonalBios;
$endpoint->generate(
	$name,
	$personal_info,
	$tone_of_voice
);

Summary

Shortened text copy that provides the main ideas and most important details of your original text.

/** @var \Devkind\WritesonicPhp\Endpoints\Summary */
$endpoint = $writesonic->Summary;
$endpoint->generate(
	$article_url,
	$article_text
);

Ai Article Writer V2

4-step, simplified GPT-3 article writer that can write unique articles instantly.

/** @var \Devkind\WritesonicPhp\Endpoints\AiArticleWriterV2 */
$endpoint = $writesonic->AiArticleWriterV2;
$endpoint->generate(
	$article_title,
	$article_intro,
	$article_sections
);

Ai Article Writer V3

Create up to 1500-word articles in just four steps with a guided process. You can choose title, intro, and outline, and customize them as needed.

/** @var \Devkind\WritesonicPhp\Endpoints\AiArticleWriterV3 */
$endpoint = $writesonic->AiArticleWriterV3;
$endpoint->generate(
	$article_title,
	$article_intro,
	$article_sections
);

Subject Lines

Powerful email subject lines that increase open rates

/** @var \Devkind\WritesonicPhp\Endpoints\SubjectLines */
$endpoint = $writesonic->SubjectLines;
$endpoint->generate(
	$product,
	$description
);

Cold Emails

Personalized email outreach to your target prospects that get better results.

/** @var \Devkind\WritesonicPhp\Endpoints\ColdEmails */
$endpoint = $writesonic->ColdEmails;
$endpoint->generate(
	$you,
	$to,
	$goal,
	$scenario
);

Real Estate Listing

Copy that makes your real-estate listings stand out from the crowd.

/** @var \Devkind\WritesonicPhp\Endpoints\RealEstateListing */
$endpoint = $writesonic->RealEstateListing;
$endpoint->generate(
	$type,
	$price,
	$location,
	$floor_area,
	$bedroom,
	$kitchen,
	$bathroom,
	$additional_features
);

Review Responses

Automatically generate personalized replies for both positive and negative reviews.

/** @var \Devkind\WritesonicPhp\Endpoints\ReviewResponses */
$endpoint = $writesonic->ReviewResponses;
$endpoint->generate(
	$review,
	$type,
	$company,
	$contact,
	$user
);

Quora Answers

Answers to Quora questions that will position you as an authority.

/** @var \Devkind\WritesonicPhp\Endpoints\QuoraAnswers */
$endpoint = $writesonic->QuoraAnswers;
$endpoint->generate(
	$question,
	$info
);

Paragraph Writer

Perfectly structured paragraphs that are easy to read and packed with persuasive words.

/** @var \Devkind\WritesonicPhp\Endpoints\ParagraphWriter */
$endpoint = $writesonic->ParagraphWriter;
$endpoint->generate(
	$paragraph_title
);

Conclusion Writer

Powerful conclusion copy that will make a reader take action.

/** @var \Devkind\WritesonicPhp\Endpoints\ConclusionWriter */
$endpoint = $writesonic->ConclusionWriter;
$endpoint->generate(
	$article
);

Instagram Captions

Captions that turn your images into attention-grabbing Instagram posts.

/** @var \Devkind\WritesonicPhp\Endpoints\InstagramCaptions */
$endpoint = $writesonic->InstagramCaptions;
$endpoint->generate(
	$description,
	$tone_of_voice
);

Tiktok Scripts

Video scripts that are ready to shoot and will make you go viral.

/** @var \Devkind\WritesonicPhp\Endpoints\TiktokScripts */
$endpoint = $writesonic->TiktokScripts;
$endpoint->generate(
	$description
);

Tweets

Generate tweets using AI, that are relevant and on-trend.

/** @var \Devkind\WritesonicPhp\Endpoints\Tweets */
$endpoint = $writesonic->Tweets;
$endpoint->generate(
	$topic
);

Tiktok Hooks

Perfect TikTok video hook to get more views and followers.

/** @var \Devkind\WritesonicPhp\Endpoints\TiktokHooks */
$endpoint = $writesonic->TiktokHooks;
$endpoint->generate(
	$description
);

Story Generation

Engaging and persuasive stories that will capture your reader's attention and interest.

/** @var \Devkind\WritesonicPhp\Endpoints\StoryGeneration */
$endpoint = $writesonic->StoryGeneration;
$endpoint->generate(
	$description,
	$tone_of_voice
);

Question Generation

A tool to create engaging questions and polls that increase audience participation and engagement.

/** @var \Devkind\WritesonicPhp\Endpoints\QuestionGeneration */
$endpoint = $writesonic->QuestionGeneration;
$endpoint->generate(
	$paragraph
);

Call To Action

Eye-catching calls to action that will encourage conversions and boost your sales.

/** @var \Devkind\WritesonicPhp\Endpoints\CallToAction */
$endpoint = $writesonic->CallToAction;
$endpoint->generate(
	$description
);

Lyrics Generator

Unique song lyrics that will be perfect for your next hit song.

/** @var \Devkind\WritesonicPhp\Endpoints\LyricsGenerator */
$endpoint = $writesonic->LyricsGenerator;
$endpoint->generate(
	$topic,
	$genre
);

Define This

A definition for a word, phrase, or acronym that's used often by your target buyers.

/** @var \Devkind\WritesonicPhp\Endpoints\DefineThis */
$endpoint = $writesonic->DefineThis;
$endpoint->generate(
	$keyword
);

Google Adv Titles V2

Creating ads with unique and appealing titles that entice people to click on your ad and purchase from your site.

/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAdTitlesV2 */
$endpoint = $writesonic->GoogleAdTitlesV2;
$endpoint->generate(
	$company_name,
	$description,
	$keyword
);

Google Adv Descriptions V2

The best-performing Google ad copy converts visitors into customers..

/** @var \Devkind\WritesonicPhp\Endpoints\GoogleAdDescriptionsV2 */
$endpoint = $writesonic->GoogleAdDescriptionsV2;
$endpoint->generate(
	$name,
	$details
);

Bulletpoint Answers

Precise and informative bullet points that provide quick and valuable answers to your customers' questions.

/** @var \Devkind\WritesonicPhp\Endpoints\BulletpointAnswers */
$endpoint = $writesonic->BulletpointAnswers;
$endpoint->generate(
	$question
);

Rewrite With Keywords

Rewrite your existing content to include more keywords and boost your search engine rankings.

/** @var \Devkind\WritesonicPhp\Endpoints\RewriteWithKeywords */
$endpoint = $writesonic->RewriteWithKeywords;
$endpoint->generate(
	$article,
	$keywords
);

Ans My Ques

Instant, quality answers to any questions or concerns that your audience might have.

/** @var \Devkind\WritesonicPhp\Endpoints\AnsMyQues */
$endpoint = $writesonic->AnsMyQues;
$endpoint->generate(
	$question
);

App Notifications

Notification messages for your apps, websites, and mobile devices that keep users coming back for more.

/** @var \Devkind\WritesonicPhp\Endpoints\AppNotifications */
$endpoint = $writesonic->AppNotifications;
$endpoint->generate(
	$description
);

Pros And Cons

List of the main benefits versus the most common problems and concerns.

/** @var \Devkind\WritesonicPhp\Endpoints\ProsAndCons */
$endpoint = $writesonic->ProsAndCons;
$endpoint->generate(
	$paragraph
);

Active Voice

Easy and quick solution to converting your passive voice sentences into active voice sentences.

/** @var \Devkind\WritesonicPhp\Endpoints\ActiveVoice */
$endpoint = $writesonic->ActiveVoice;
$endpoint->generate(
	$sentence
);

Youtube Hooks

Generate catchy Youtube hooks to make your video stand out.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeHooks */
$endpoint = $writesonic->YoutubeHooks;
$endpoint->generate(
	$video_title,
	$tone
);

Instant Article Writer

Instantly generate 1500-word articles with one click. This is an automated process, so your title must be very precise.

/** @var \Devkind\WritesonicPhp\Endpoints\InstantArticleWriter */
$endpoint = $writesonic->InstantArticleWriter;
$endpoint->generate(
	$article_title
);

Youtube Intros V2

Catchy intros that will get viewers hooked before they even start watching.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeIntrosV2 */
$endpoint = $writesonic->YoutubeIntrosV2;
$endpoint->generate(
	$video_title,
	$hook,
	$tone
);

Youtube Descriptions V2

Catchy and persuasive YouTube descriptions that help your videos rank higher.

/** @var \Devkind\WritesonicPhp\Endpoints\YoutubeDescriptionsV2 */
$endpoint = $writesonic->YoutubeDescriptionsV2;
$endpoint->generate(
	$video_title,
	$keywords
);

Review Generator

Automatically generate personalized high-quality reviews for any product or service.

/** @var \Devkind\WritesonicPhp\Endpoints\ReviewGenerator */
$endpoint = $writesonic->ReviewGenerator;
$endpoint->generate(
	$product_name,
	$experience,
	$description
);