curl を更新
							
								
								
									
										25
									
								
								curl.md
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
										
											
											
										
										
									
								
							
						
						
									
										25
									
								
								curl.md
									
									
									
									
									
								
							| @@ -17,6 +17,31 @@ $ curl -sL plc.syu.is/did:plc:6qyecktefllvenje24fcxnie | ||||
| $ curl -sL "syu.is/xrpc/com.atproto.repo.listRecords?repo=ai.syu.is&collection=app.bsky.feed.post&reverse=true&limit=1"  | ||||
| ``` | ||||
|  | ||||
| ## at-uri | ||||
|  | ||||
| ```sh | ||||
| #!/bin/zsh | ||||
|  | ||||
| function at-uri-search(){ | ||||
| 	if [ -z "$1" ];then | ||||
| 		# https://at.syu.is/at/did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.game.user/syui | ||||
| 		at_uri=at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.game.user/syui | ||||
| 	else | ||||
| 		at_uri=$1 | ||||
| 	fi | ||||
| 	host=bsky.social | ||||
| 	req=xrpc/com.atproto.repo.getRecord | ||||
| 	url=https://${host}/${req} | ||||
| 	 | ||||
| 	did=`echo $at_uri|cut -d / -f 3` | ||||
| 	collection=`echo $at_uri|cut -d / -f 4` | ||||
| 	rkey=`echo $at_uri|cut -d / -f 5` | ||||
| 	curl -sL "$url?repo=$did&collection=$collection&rkey=$rkey"|jq . | ||||
| } | ||||
|  | ||||
| at-uri-search $1 | ||||
| ``` | ||||
|  | ||||
| ## invite code | ||||
|  | ||||
| ```sh | ||||
|   | ||||
		Reference in New Issue
	
	Block a user