Skip to content

Commit

Permalink
improve url for search article
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Bugor committed Dec 28, 2021
1 parent 14e7aca commit 466c506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/UseDeskSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public class UseDeskSDK: NSObject, UDUISetupable {

@objc public func getSearchArticles(collection_ids:[Int], category_ids:[Int], article_ids:[Int], count: Int = 20, page: Int = 1, query: String, type: TypeArticle = .all, sort: SortArticle = .id, order: OrderArticle = .asc, connectionStatus searchBlock: @escaping UDSArticleSearchBlock, errorStatus errorBlock: @escaping UDSErrorBlock) {
if knowledgeBaseID != "" {
var url = urlBase()
var url = "https://" + urlBase()
url += "/support/\(knowledgeBaseID)/articles/list?api_token=\(api_token)"
var urlForEncode = "&query=\(query)&count=\(count)&page=\(page)&short_text=\(1)"
switch type {
Expand Down

0 comments on commit 466c506

Please sign in to comment.