@@ -31,7 +31,7 @@ See more at [SharpAPI.com Website »](https://sharpapi.com/)
31
31
- Spam Content Detection: Identify and filter out spam content effectively.
32
32
- Contact Information Extraction: Extract phone numbers and email addresses from non-standard formats for
33
33
streamlined communication.
34
- - Generate concise summaries for improved content consumption.
34
+ - Generate concise summaries and unique keywords/tags for improved content consumption.
35
35
- Boost SEO efforts by automatically generating META tags based on content.
36
36
* ** HR Tech**
37
37
- Generate complex job descriptions effortlessly, saving time in the hiring process.
@@ -77,15 +77,15 @@ $sharpApi = new \SharpAPI\SharpApiService\SharpApiService('8bKzQl3cwckfVsnsN8T8p
77
77
78
78
$statusUrl = $sharpApi->productCategories(' Lenovo Chromebook Laptop (2023), 14" FHD Touchscreen Slim 3, 8-Core MediaTek Kompanio 520 CPU, 4GB RAM, 128GB Storage');
79
79
80
- $resultSharpApiJob = $sharpApi ->pollJobStatusAndFetchResults ($statusUrl );
80
+ $resultSharpApiJob = $sharpApi ->fetchResults ($statusUrl );
81
81
82
82
var_dump($resultSharpApiJob ->getResultJson());
83
83
` ` `
84
84
85
85
Typical use case require these steps:
86
86
87
87
1. 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
89
89
requests every 10 seconds for 180 seconds (these values can be customized,
90
90
check ` SharpApiService` source code).
91
91
3. ` SharpApiJob` object will be returned.
@@ -126,7 +126,7 @@ try {
126
126
}
127
127
128
128
// 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 );
130
130
131
131
// Step 3: get results of dispatched API job, f.e. this returns job result as a prettied JSON
132
132
$jobResultJson = $jobResult->getResultJson ();
@@ -162,7 +162,7 @@ class SharpTest extends Controller
162
162
Call: 1800-394-7486 or our Singapore office +65 8888 8888'
163
163
);
164
164
165
- $result = $this -> sharpApiService-> pollJobStatusAndFetchResults ($statusUrl );
165
+ $result = $this -> sharpApiService-> fetchResults ($statusUrl );
166
166
167
167
dd($result->getResultJson ());
168
168
/* returned:
@@ -335,6 +335,15 @@ or f.e. if you want to detect emails in places where they're not supposed to be.
335
335
$statusUrl = \S harpApiService::detectEmails($text );
336
336
` ` `
337
337
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
+
338
347
# ### Summarize Text
339
348
340
349
Generates a summarized version of the provided content. Perfect for generating
0 commit comments