             
             let sem = DispatchSemaphore(value: 0)
             
-            Alamofire.request("\(url)?\(pageKey)=\(1)", method: .get, headers: self.headers).responseJSON { response in
+            Alamofire.request(url(1), method: .get, headers: self.headers).responseJSON { response in
                 switch response.result {
                 case .success(let data):
                     print("successful")

                
                let sem = DispatchSemaphore(value: 0)
                
                Alamofire.request("\(url)?\(pageKey)=\(page)", method: .get, headers: self.headers).responseJSON { response in
                    switch response.result {
                    case .success(let data):
                        print("successful")

    
    /// The number of pages.
    public var pages: UInt = 1
    public var usePerPage: Bool = false
    public var perPage: Int = 1
    public var headers: HTTPHeaders?

    
    public var idKey: String
    public var pageKey: String
    public var pageTotalKey: String
    public var perPageKey: String
    
    public var delegate: SimpleSyncDelegate?
    
