Skip to content

Commit

Permalink
Merge pull request #1920 from h3poteto/drop/misskey
Browse files Browse the repository at this point in the history
Drop Misskey support
  • Loading branch information
h3poteto authored Sep 22, 2023
2 parents 23e2241 + ff3cd72 commit 1ed1479
Show file tree
Hide file tree
Showing 53 changed files with 6 additions and 4,682 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
[![NPM](https://img.shields.io/npm/l/megalodon)](/LICENSE.txt)

A Fediverse API Client library for node.js and browser. It provides REST API and streaming methods.
By using this library, you can take Mastodon, Pleroma, Friendica, and Misskey with the same interface.
By using this library, you can take Mastodon, Pleroma, Friendica, and Firefish with the same interface.

The Rust version is [megalodon-rs](https://github.com/h3poteto/megalodon-rs).

## Supporting
- [x] Mastodon
- [x] Pleroma
- [x] Friendica
- [x] Misskey
- [x] Firefish
- [x] Akkoma (Unofficial)
- [x] Widlebeest (Unofficial)

Expand Down Expand Up @@ -103,7 +103,6 @@ client.uploadMedia(image)
```

### WebSocket streaming
Mastodon, Pleroma and Misskey provide WebSocket for streaming.

```typescript
import generator, { Entity, WebSocketInterface } from 'megalodon'
Expand Down Expand Up @@ -188,13 +187,13 @@ client.fetchAccessToken(clientId, clientSecret, code)
```

### Detect each SNS
You have to provide SNS name `mastodon`, `pleroma` or `misskey` to `generator` function.
You have to provide SNS name (e.g. `mastodon`, `pleroma`) to `generator` function.
But when you only know the URL and not the SNS, `detector` function can detect the SNS.

```typescript
import { detector } from 'megalodon'

const URL = 'https://misskey.io'
const URL = 'https://mastodon.social'

const sns = await detector(URL)
console.log(sns)
Expand Down
18 changes: 0 additions & 18 deletions example/typescript/src/misskey/account.ts

This file was deleted.

48 changes: 0 additions & 48 deletions example/typescript/src/misskey/authorization.ts

This file was deleted.

17 changes: 0 additions & 17 deletions example/typescript/src/misskey/cancel.ts

This file was deleted.

26 changes: 0 additions & 26 deletions example/typescript/src/misskey/emoji_reactions.ts

This file was deleted.

18 changes: 0 additions & 18 deletions example/typescript/src/misskey/emojis.ts

This file was deleted.

18 changes: 0 additions & 18 deletions example/typescript/src/misskey/favourite.ts

This file was deleted.

12 changes: 0 additions & 12 deletions example/typescript/src/misskey/instance.ts

This file was deleted.

14 changes: 0 additions & 14 deletions example/typescript/src/misskey/media.ts

This file was deleted.

18 changes: 0 additions & 18 deletions example/typescript/src/misskey/note.ts

This file was deleted.

15 changes: 0 additions & 15 deletions example/typescript/src/misskey/notification.ts

This file was deleted.

37 changes: 0 additions & 37 deletions example/typescript/src/misskey/poll.ts

This file was deleted.

21 changes: 0 additions & 21 deletions example/typescript/src/misskey/proxy_detector.ts

This file was deleted.

26 changes: 0 additions & 26 deletions example/typescript/src/misskey/proxy_instance.ts

This file was deleted.

17 changes: 0 additions & 17 deletions example/typescript/src/misskey/relationships.ts

This file was deleted.

20 changes: 0 additions & 20 deletions example/typescript/src/misskey/timeline.ts

This file was deleted.

Loading

0 comments on commit 1ed1479

Please sign in to comment.