@@ -31,7 +31,7 @@ See more at [SharpAPI.com Website »](https://sharpapi.com/)
3131 - Spam Content Detection: Identify and filter out spam content effectively.
3232 - Contact Information Extraction: Extract phone numbers and email addresses from non-standard formats for
3333 streamlined communication.
34- - Generate concise summaries for improved content consumption.
34+ - Generate concise summaries and unique keywords/tags for improved content consumption.
3535 - Boost SEO efforts by automatically generating META tags based on content.
3636* ** HR Tech**
3737 - Generate complex job descriptions effortlessly, saving time in the hiring process.
@@ -77,15 +77,15 @@ $sharpApi = new \SharpAPI\SharpApiService\SharpApiService('8bKzQl3cwckfVsnsN8T8p
7777
7878$statusUrl = $sharpApi->productCategories(' Lenovo Chromebook Laptop (2023), 14" FHD Touchscreen Slim 3, 8-Core MediaTek Kompanio 520 CPU, 4GB RAM, 128GB Storage');
7979
80- $resultSharpApiJob = $sharpApi ->pollJobStatusAndFetchResults ($statusUrl );
80+ $resultSharpApiJob = $sharpApi ->fetchResults ($statusUrl );
8181
8282var_dump($resultSharpApiJob ->getResultJson());
8383` ` `
8484
8585Typical use case require these steps:
8686
87871. Dispatch one of the available AI processing methods (this will return job processing status URL)
88- 2. Run ` pollJobStatusAndFetchResults ($statusUrl )` method which operates in polling mode, sending underneath
88+ 2. Run ` fetchResults ($statusUrl )` method which operates in polling mode, sending underneath
8989 requests every 10 seconds for 180 seconds (these values can be customized,
9090 check ` SharpApiService` source code).
91913. ` SharpApiJob` object will be returned.
@@ -126,7 +126,7 @@ try {
126126}
127127
128128// Step 2: request to check job status in polling mode and wait for the result
129- $jobResult = \S harpApiService::pollJobStatusAndFetchResults ($statusUrl );
129+ $jobResult = \S harpApiService::fetchResults ($statusUrl );
130130
131131// Step 3: get results of dispatched API job, f.e. this returns job result as a prettied JSON
132132$jobResultJson = $jobResult->getResultJson ();
@@ -162,7 +162,7 @@ class SharpTest extends Controller
162162 Call: 1800-394-7486 or our Singapore office +65 8888 8888'
163163 );
164164
165- $result = $this -> sharpApiService-> pollJobStatusAndFetchResults ($statusUrl );
165+ $result = $this -> sharpApiService-> fetchResults ($statusUrl );
166166
167167 dd($result->getResultJson ());
168168 /* returned:
@@ -335,6 +335,15 @@ or f.e. if you want to detect emails in places where they're not supposed to be.
335335$statusUrl = \S harpApiService::detectEmails($text );
336336` ` `
337337
338+ # ### Generate Keywords/Tags
339+
340+ Generates a list of unique keywords/tags based on the provided content.
341+
342+ ` ` ` php
343+ $statusUrl = \S harpApiService::generateKeywords($text , ' English' );
344+ ` ` `
345+
346+
338347# ### Summarize Text
339348
340349Generates a summarized version of the provided content. Perfect for generating
0 commit comments