---
title: "Ruby SDK"
description: "Ruby 앱 및 스크립트에서 TwexAPI Ruby SDK로 트윗 검색, 팔로워보내기, DM 및 X 자동화를 사용합니다."
---

Ruby 앱 및 스크립트에서 TwexAPI REST 워크플로를 위해 타입 요청 객체, Faraday 기반 HTTP, 재시도, 페이지네이션 헬퍼가 필요할 때 Ruby SDK를 사용하세요.

| Ruby 작업 | SDK 호출 | 저장 |
| --------- | ------------------------ | ------------ |
| 트윗 검색 | `client.search.advanced` | `next_cursor` |
| 프로필 읽기 | `client.users.get_about` | `screen_name` |
| 팔로워 목록 | `client.users.followers.list` | cursor |

## 오류 처리

```ruby
begin
  client.search.advanced(request: req)
rescue Models::Errors::HTTPValidationError => e
  raise e
rescue Errors::APIError => e
  puts e.status_code, e.body
end
```

## 참고 자료

* [SDK 개요](/sdks)
* [인증](/authentication)
* [고급 트위터 검색](/api-reference/search-endpoints/get-data-page-twitter-advanced-search-page-post)
* [소스 저장소](https://github.com/twexapi-dev/x-api-scraper-ruby)
